[Po4a-devel] [PATCH] Register missing Texinfo 5.2 quotation-like environments

Bruno Félix Rezende Ribeiro oitofelix at gnu.org
Tue Jan 28 08:00:15 UTC 2014

Hello po4a developers.

The quotation-like Texinfo environments 'smallquotation',
'indentedblock', 'smallindentedblock' and 'raggedright', present in
Texinfo 5.2, are not registered in po4a's Texinfo module, causing
po4a-gettextize to yield errors like:

master.texi:71: (po4a::tex) unmatched end of environment 'smallquotation'

when such environments are found in master documents.  The simple patch
below fixes this problem.  Please CC me as I'm not subscribed to this
mailing list.

Index: trunk/lib/Locale/Po4a/Texinfo.pm
--- trunk/lib/Locale/Po4a/Texinfo.pm	(revisão 2751)
+++ trunk/lib/Locale/Po4a/Texinfo.pm	(cópia de trabalho)
@@ -509,7 +509,9 @@
     $commands{$_} = \&environment_line_command;
     $break_line{$_} = 1;
-foreach (qw(quotation)) {
+foreach (qw(quotation smallquotation
+            indentedblock smallindentedblock
+            raggedright)) {
     $commands{$_} = \&environment_line_command;
     $translate_line_command{$_} = 1;
     $break_line{$_} = 1;

 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  Linux-libre is just one of its kernels;
     \_/      All software should be free as in freedom;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/po4a-devel/attachments/20140128/d7601c60/attachment.sig>

More information about the Po4a-devel mailing list