[Po4a-commits] "po4a/lib/Locale/Po4a Man.pm,1.191,1.192"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Thu Nov 23 00:51:24 CET 2006
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv30029/lib/Locale/Po4a
Modified Files:
Man.pm
Log Message:
Support empty quoted arguments in translate_mdoc and for the .Sh macro.
Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- Man.pm 22 Nov 2006 23:44:01 -0000 1.191
+++ Man.pm 22 Nov 2006 23:51:22 -0000 1.192
@@ -2220,7 +2220,7 @@
my $macroarg = "";
foreach (@_) {
$macroarg.=" " if (length $macroarg);
- if ($_ =~ m/((?<!\\) |\t)/) {
+ if ($_ =~ m/((?<!\\) |\t|^$)/) {
$macroarg.="\"$_\"";
} else {
$macroarg.=$_;
@@ -2279,7 +2279,7 @@
my $macroarg = "";
foreach (@_) {
$macroarg.=" " if (length $macroarg);
- if ($_ =~ m/((?<!\\) |\t)/) {
+ if ($_ =~ m/((?<!\\) |\t|^$)/) {
$macroarg.="\"$_\"";
} else {
$macroarg.=$_;
More information about the Po4a-commits
mailing list