[SVN] modification to LaTeXtidy.pl

Allan Odgaard throw-away-1 at macromates.com
Sat Nov 5 03:19:41 UTC 2005


On 04/11/2005, at 9.59, Gianguido Dall'Agata wrote:

> LaTeXtidy does not handle properly the arrays.
> I think before the line [...]

So that'd be the patch below.

Eric, are you reading this? And should I just go ahead and commit?

Index: /Users/duff/Library/tm/Bundles/Latex.tmbundle/Support/bin/ 
LaTeXTidy.pl
===================================================================
--- /Users/duff/Library/tm/Bundles/Latex.tmbundle/Support/bin/ 
LaTeXTidy.pl	(revision 2083)
+++ /Users/duff/Library/tm/Bundles/Latex.tmbundle/Support/bin/ 
LaTeXTidy.pl	(working copy)
@@ -98,6 +98,7 @@
	s/(\\begin\{)(.*?)(\})/\n$1$2$3\n/g;
	s/(\\end\{)(.*?)(\})/\n$1$2$3\n/g;
+	s/(\\begin\{array\})\n(\{)(.*?)(\})/\n$1$2$3$4\n/g;
	
#Newlines before each \item.





More information about the textmate-dev mailing list