[Po4a-commits] "po4a/lib/Locale/Po4a Man.pm,1.175,1.176"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Fri Aug 4 00:08:50 UTC 2006


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

Modified Files:
	Man.pm 
Log Message:
Strings that only consist in font modifiers are not translated, but need
to be given to the font stack routine.


Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- Man.pm	3 Aug 2006 22:30:31 -0000	1.175
+++ Man.pm	4 Aug 2006 00:08:46 -0000	1.176
@@ -1007,7 +1007,9 @@
     return $str if ($str eq "\n");
     # Do not translate the strings that only consist of fonts, spaces and
     # \&. This is usefull because we introduced \& in shiftline.
-    return $str if ($str =~ m/^($FONT_RE|\s|\\&)*$/);
+    if ($str =~ m/^($FONT_RE|\s|\\&)*$/) {
+        return do_fonts($str, $ref);
+    }
 
     # If a string is quoted, only translate the argument between the
     # quotes.




More information about the Po4a-commits mailing list