Red Hat Bugzilla – Bug 1045463
processing instructions contained in PO files are incorrectly stripped
Last modified: 2014-05-05 02:03:29 EDT
This is very much like https://bugzilla.redhat.com/show_bug.cgi?id=819420 except that it concerns translations instead of the original document.
Description: When I add some processing instructions in some translated strings (i.e. in a msgid in a PO file), it doesn't get carried over to the generated XML files. The processing instruction is neither present in the tmp/<lang>/xml/* files nor in the tmp/<lang>/xml_tmp/* files (so it's lost even earlier than #819420 IIRC).
Expected result: The processing instructions should be kept.
Created attachment 839576 [details]
This patch works for me. But maybe the better fix is to enhance Publican::new_tree() to always call $xml_doc->store_pis(1) given that I don't see any place where we really want to drop processing instructions.
Hey Rudi, do we want to allow translators to set processing instructions?
Added store_pis call to Publican::new_tree().
8cf3d60..62b41f3 devel -> devel
A fix for this shipped in Publican 4.1.0.