[Po4a-commits] po4a/lib/Locale/Po4a Man.pm,1.82,1.83

Nicolas FRAN??OIS po4a-devel@lists.alioth.debian.org
Fri, 08 Apr 2005 23:37:12 +0000


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

Modified Files:
	Man.pm 
Log Message:
There were a problem (duplicate comment in the translated document) when
the last paragraph of the document is a comment.


Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- Man.pm	3 Apr 2005 14:42:53 -0000	1.82
+++ Man.pm	8 Apr 2005 23:37:10 -0000	1.83
@@ -868,7 +868,9 @@
 
     # flush the last comments
     push @comments, @next_comments;
-    for my $c (@comments) {
+    @next_comments = @comments;
+    @comments = ();
+    for my $c (@next_comments) {
 	$self->pushline(".\\\"$c\n");
     }
 } # end of main