[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.11,1.12
Nicolas FRAN??OIS
po4a-devel@lists.alioth.debian.org
Fri, 04 Feb 2005 21:06:32 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv32197/lib/Locale/Po4a
Modified Files:
TeX.pm
Log Message:
Lines with only spaces seems to also indicate the end of a paragraph.
This should be checked.
Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- TeX.pm 4 Feb 2005 21:02:43 -0000 1.11
+++ TeX.pm 4 Feb 2005 21:06:29 -0000 1.12
@@ -704,7 +704,7 @@
$line = "$1%";
}
- if ($line =~ /^$/) {
+ if ($line =~ /^ *$/) {#FIXME: \s*?
# An empty line. This indicates the end of the current
# paragraph.
$paragraph =~ s/(?<!\\)%$//; # FIXME: even number of \ ...
@@ -729,6 +729,7 @@
chomp $paragraph;
$line =~ s/^ *//;
}
+ # FIXME: s/^\s+/ /
$paragraph .= $line."\n";
}