[Po4a-commits] "po4a/lib/Locale/Po4a Xml.pm,1.107,1.108"

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sun Dec 27 00:27:02 UTC 2009


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv28929/lib/Locale/Po4a

Modified Files:
	Xml.pm 
Log Message:
	* NEWS, lib/Locale/Po4a/Xml.pm: Fix handling of multi-lines
	placeholder tags.


Index: Xml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- Xml.pm	21 Jul 2009 13:34:20 -0000	1.107
+++ Xml.pm	27 Dec 2009 00:26:59 -0000	1.108
@@ -1427,7 +1427,7 @@
 						my @sub_translations = ();
 						my %folded_attributes;
 						my %new_holder = ('paragraph' => \@new_paragraph,
-						                  'open' => $text[0],
+						                  'open' => $self->join_lines(@text),
 						                  'translation' => "",
 						                  'close' => undef,
 						                  'sub_translations' => \@sub_translations,
@@ -1487,8 +1487,8 @@
 						# the holder from the stack.
 						my $holder = pop @save_holders;
 						# We need to keep the translation of this holder
-						my $translation = $holder->{'open'}.$holder->{'translation'}.$text[0];
-						# FIXME: @text could be multilines.
+						my $translation = $holder->{'open'}.$holder->{'translation'};
+						$translation .= $self->join_lines(@text);
 
 						@text = ();
 




More information about the Po4a-commits mailing list