Skip to content

Commit f9ea406

Browse files
committed
BF - need bars around 'l's for longtable columns
Initial processor just replaced L with l, but we need the bars (|l|l|) to make a nice-looking table
1 parent e0ae2fe commit f9ea406

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/fix_longtable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
r"longtable}{(L+)}")
99

1010
def replacer(match):
11-
return r"longtable}{%s}" % match.groups()[0].lower()
11+
args = '|' + 'l|' * len(match.groups()[0])
12+
return "longtable}{%s}" % args
13+
1214

1315
if len(sys.argv) != 2:
1416
raise RuntimeError("Enter path to tex file only")

0 commit comments

Comments
 (0)