[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.67,1.68"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Tue Sep 13 19:01:05 UTC 2005


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv10813/lib/Locale/Po4a

Modified Files:
	Sgml.pm 
Log Message:
Recognize character entities (like &38;), and avoid them being converted
by nsgmls.
Thanks to Thomas Huriaux.


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- Sgml.pm	13 Sep 2005 14:11:39 -0000	1.67
+++ Sgml.pm	13 Sep 2005 19:01:03 -0000	1.68
@@ -606,7 +606,8 @@
     }
 
     #   Change the entities including files in the document
-    while ($origfile =~ /^(.*?)&([A-Za-z_:][-_:.A-Za-z0-9]*);(.*)$/s) {
+    while ($origfile =~
+        /^(.*?)&([A-Za-z_:][-_:.A-Za-z0-9]*|#[0-9]+|#x[0-9a-fA-F]+);(.*)$/s) {
 	if (defined $entincl{$2}) {
 	    my ($begin,$key,$end)=($1,$2,$3);
 	    $end =~ s/^\s*\n//s;




More information about the Po4a-commits mailing list