only is this less horrifyingly ugly, but it makes editing things in Vim or other advanced text editors much easier.
In other words, this script will turn the following:
[pre]
variable1 = 1
var2 = 2
mylongvariablename = 3
[/pre]
into
[pre]
variable1 = 1
var2 = 2
mylongvariablename = 3
[/pre]
Vertical alignment is calculated per-section, so one long variable name in a single section won\'t push all the alignments way off to the right. Tabs are used on both sides of the equal sign so that block-assignments such as
[pre]
var = val1,
val2,
val3,
val4
[/pre]
retain their correct alignment, without needing to mix spaces and tabs (always the wrong thing to do).
Hide