[Po4a-commits] "po4a/lib/Locale/Po4a LaTeX.pm,1.17,1.18"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Mar 16 20:33:37 UTC 2009


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv29747/lib/Locale/Po4a

Modified Files:
	LaTeX.pm 
Log Message:
	* NEWS, lib/Locale/Po4a/LaTeX.pm: Added support for the tabularx
	environment.


Index: LaTeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/LaTeX.pm,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- LaTeX.pm	19 Sep 2007 21:32:30 -0000	1.17
+++ LaTeX.pm	16 Mar 2009 20:33:35 -0000	1.18
@@ -360,6 +360,7 @@
 }
 register_generic_environment("tabular,[]{}");
 register_generic_environment("tabular*,{}{}");
+register_generic_environment("tabularx,{}{}");
 register_generic_environment("multicols,{}");
 register_generic_environment("list,{_}{}");
 register_generic_environment("array,[]{}");
@@ -374,8 +375,9 @@
 
 # & is the cell separator, \\ is the line separator
 # '\' is escaped twice
-$env_separators{'array'} =
-  $env_separators{'tabular'} = "(?:&|\\\\\\\\)";
+$env_separators{'array'} = 
+  $env_separators{'tabular'} =
+  $env_separators{'tabularx'} = "(?:&|\\\\\\\\|\\\\hline)";
 
 $env_separators{'trivlist'} =
   $env_separators{'list'} =




More information about the Po4a-commits mailing list