[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.72,1.73"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Wed Sep 14 13:23:45 UTC 2005
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv8957/lib/Locale/Po4a
Modified Files:
Sgml.pm
Log Message:
Only mask <, > and & in CDATA (and RCDATA) masked sections.
They are masked in these sections to avoid them being considered as tags
by nsgmls.
Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- Sgml.pm 14 Sep 2005 13:21:51 -0000 1.72
+++ Sgml.pm 14 Sep 2005 13:23:43 -0000 1.73
@@ -491,7 +491,7 @@
# correspond to tags or entities delimiters.
$tmp1 = $origfile;
$origfile = "";
- while ($tmp1 =~ m/^(.*?{PO4A-beg-[^}]*})(.+?)({PO4A-end}.*)$/s) {
+ while ($tmp1 =~ m/^(.*?{PO4A-beg-\s*(?:CDATA|RCDATA)\s*})(.+?)({PO4A-end}.*)$/s) {
my ($begin, $tmp) = ($1, $2);
$tmp1 = $3;
$tmp =~ s/</{PO4A-lt}/gs;
More information about the Po4a-commits
mailing list