File: keep-pi-from-po.patch

package info (click to toggle)
publican 4.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 18,280 kB
  • sloc: perl: 13,081; xml: 11,558; makefile: 169; sh: 29; python: 29
file content (16 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Keep processing instructions contained in PO files
 They are allowed in the Docbook files, they should be allowed
 in the translations of those files.
Author: Raphaƫl Hertzog <hertzog@debian.org>
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1045463
Last-Update: 2014-01-27
--- a/lib/Publican/Translate.pm
+++ b/lib/Publican/Translate.pm
@@ -917,6 +917,7 @@ sub translate {
                 }
             );
             my $new_tree = Publican::Builder::new_tree();
+            $new_tree->store_pis(1);
             $new_tree->parse(qq|$dtd<$tag$attr_text>$repl</$tag>|);
             $node->delete_content();
             $node->push_content( $new_tree->content_list() );