[Po4a-commits] "po4a/lib/Locale/Po4a Man.pm,1.161,1.162"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Jul 16 10:11:15 UTC 2006


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

Modified Files:
	Man.pm 
Log Message:
Support commented lines between .ie and .el macros.


Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- Man.pm	16 Jul 2006 09:56:15 -0000	1.161
+++ Man.pm	16 Jul 2006 10:11:13 -0000	1.162
@@ -1871,8 +1871,15 @@
             $count -= 1 if ($line =~ m/(?<!\\)\\\}/s);
         }
         if ($m eq '.ie') {
+            # The .el line may be preceded by comments
             ($line,$ref)=$self->SUPER::shiftline();
             chomp $line;
+            while ($line =~ m/^[.']\\"/) {
+                $paragraph .= "\n".$line;
+                ($line,$ref)=$self->SUPER::shiftline();
+                chomp $line;
+            }
+
             if ($line !~ m/^[.'][ \t]*el(\s|\\\{)/) {
                 die ".ie without .el\n"
             }




More information about the Po4a-commits mailing list