[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.98,1.99"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Nov 28 20:56:21 UTC 2005


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

Modified Files:
	Sgml.pm 
Log Message:
Do not forget to push some bits of the prolog.
This is even more important now that we ignore some entities.


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- Sgml.pm	28 Nov 2005 19:39:39 -0000	1.98
+++ Sgml.pm	28 Nov 2005 20:56:18 -0000	1.99
@@ -800,7 +800,8 @@
 	   warn "Seen text entity $2\n" if ($debug{'entities'});
 	   $prolog = $4;
 	}
-        $self->pushline($post."\n") if (length($post));
+	$prolog .= $post;
+	$self->pushline($prolog."\n") if (length($prolog));
     } else {
 	warn "No entity declaration detected in ~~$prolog~~...\n" if ($debug{'entities'});
 	$self->pushline($prolog) if length($prolog);




More information about the Po4a-commits mailing list