[Po4a-commits] po4a/lib/Locale/Po4a Sgml.pm,1.50,1.51
Nicolas FRANCOIS
po4a-devel@lists.alioth.debian.org
Wed, 11 May 2005 23:19:19 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv4072/lib/Locale/Po4a
Modified Files:
Sgml.pm
Log Message:
If a CDATA is inside a translated tag, it is pushed before the beginning
of the tag.
The CDATA has to be appended to the buffer in order to be pushed at the
right place.
Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- Sgml.pm 11 May 2005 23:16:12 -0000 1.50
+++ Sgml.pm 11 May 2005 23:19:16 -0000 1.51
@@ -812,16 +812,15 @@
$cdata =~ /\S/) {
$cdata =~ s/\s*{PO4A-end}/\]\]>\n/g;
$cdata =~ s/\s*{PO4A-beg-([^\}]+)}/<!\[$1\[\n/g;
- $self->pushline($cdata);
} else {
if (!$verb) {
$cdata =~ s/\\t/ /g;
$cdata =~ s/\s+/ /g;
$cdata =~ s/^\s//s if $lastchar eq ' ';
}
- $lastchar = substr($cdata, -1, 1);
- $buffer .= $cdata;
}
+ $lastchar = substr($cdata, -1, 1);
+ $buffer .= $cdata;
} # end of type eq 'cdata'
elsif ($event->type eq 'sdata') {