[Po4a-commits] "po4a/lib/Locale/Po4a Man.pm,1.185,1.186"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Aug 28 18:00:32 UTC 2006


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

Modified Files:
	Man.pm 
Log Message:
* lib/Locale/Po4a/Man.pm: Keep empty commented lines.
* lib/Locale/Po4a/Man.pm: Text::WrapI18N keeps spaces at the end of
empty lines. Remove the space at the end of the line for blocks of
text (it should be done in some other blocks,but at least, it seems
safe here).


Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- Man.pm	27 Aug 2006 17:03:15 -0000	1.185
+++ Man.pm	28 Aug 2006 18:00:30 -0000	1.186
@@ -558,7 +558,7 @@
         }
 
         if ($line =~ m/^[.']*$/) {
-            if ($c !~ m/^\s*$/) {
+            if ($c !~ m/^\s+$/) {
                 # This commentted line may be comment for the next paragraph
                 push @next_comments, $c;
             }
@@ -1019,6 +1019,9 @@
         }
         $str = $tmp.$str;
     }
+    if (not defined $self->{type}) {
+        $str =~ s/ $//mg;
+    }
 
     print STDERR "$str\n" if ($debug{'postrans'});
     return $str;




More information about the Po4a-commits mailing list