Bug 1036150

Summary: publican deals badly with "\n" in po files for strings corresponding to non-verbatim tags
Product: [Community] Publican Reporter: Raphaël Hertzog <raphael>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: aigao, rlandman
Target Milestone: 3.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-19 02:46:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch fixing newline handling in translated strings none

Description Raphaël Hertzog 2013-11-29 15:01:12 UTC
Created attachment 830694 [details]
Patch fixing newline handling in translated strings

I have a translated string like that:

#. Tag: para
#, no-c-format
msgid "With [...] Thank you!"
msgstr ""
"Nous avons reçu le soutien de 650 personnes pendant la campagne de\n"
"financement initiale, et de plusieurs centaines d'autres pendant la\n"
"campagne de libération.  C'est grâce à vous que ce projet a pu voir le\n"
"jour.  Merci à tous !"

Obviously the translators (or its software) word-wrapped the translation string and added newlines where there were none in the original string. Still this should be perfectly OK because he knows that we're writing XML and that newlines should be treated just like spaces.

Unfortunately, that's not the case, the "\n" end up in the generated documents.

I believe that the attached patch fixes this problem with no bad side-effects.

Comment 2 Raphaël Hertzog 2013-11-29 15:05:28 UTC
To be clearer, the attached patch solves the problem for me and I have not yet seen any new problems since I use that patch.

Comment 3 HSS Product Manager 2013-12-17 02:47:35 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 4 Jeff Fearn 🐞 2013-12-17 03:01:19 UTC
Applied patch. Updated PUG it-IT translation and built HTML output.

To ssh://git.fedorahosted.org/git/publican.git
   252d976..6cc0236  HEAD -> devel