[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.49,1.50

Nicolas FRAN??OIS po4a-devel@lists.alioth.debian.org
Fri, 11 Mar 2005 23:20:10 +0000


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

Modified Files:
	TeX.pm 
Log Message:
During a po4a-gettextization, the module is initialized twice, and files
excluded from inclusion are registered twice. This cause duplicate
\input{x} or \include{y} in the PO.
This could also be the case if an user register the file twice.


Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- TeX.pm	5 Mar 2005 17:38:37 -0000	1.49
+++ TeX.pm	11 Mar 2005 23:20:05 -0000	1.50
@@ -799,6 +799,7 @@
                     $include = 0;
                     $begin .= "\\$tag"."{$newfilename}";
                     $textline = $end;
+                    last;
                 }
             }
             if ($include and ($tag eq "include")) {