[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.19,1.20
Nicolas FRAN??OIS
po4a-devel@lists.alioth.debian.org
Tue, 15 Feb 2005 22:14:04 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv18205/lib/Locale/Po4a
Modified Files:
TeX.pm
Log Message:
Don't store empty comments (usually used to indent commands and command
arguments). This remove a lot of \n in PO comments.
Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- TeX.pm 15 Feb 2005 22:11:50 -0000 1.19
+++ TeX.pm 15 Feb 2005 22:14:02 -0000 1.20
@@ -799,7 +799,8 @@
} elsif ($line =~ /^([^%]*)(?<!\\)%(.*)$/) { # FIXME: even number of \ ...
#FIXME: in Python-Doc, there is a % in a verbatim environment,which is not a comment.
# remove comments, and store them in @comments
- push @comments, $2;
+ push @comments, $2
+ if length($2);
# Keep the % sign. It will be removed latter.
$line = "$1%";
}