Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f0c6b2

Browse files
committed
Minor fixups.
1 parent b4c1d9b commit 4f0c6b2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Tools/scripts/texcheck.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Unbalanced of mismatched \begin and \end blocks.
99
* Misspelled or invalid LaTeX commands.
1010
* Use of forward slashes instead of backslashes for commands.
11+
* Table line size mismatches (only \lineii used in a tableii).
1112
1213
Command line usage:
1314
python texcheck.py [-h] [-k keyword] foobar.tex
@@ -137,7 +138,7 @@ def checkit(source, opts, morecmds=[]):
137138
if '-v' in opts:
138139
print ' --> ', openers
139140

140-
# Check table levels (make sure lineii only inside lineiii)
141+
# Check table levels (make sure lineii only inside tableii)
141142
m = tablestart.search(line)
142143
if m:
143144
tablelevel = m.group(1)
@@ -148,9 +149,10 @@ def checkit(source, opts, morecmds=[]):
148149
if tableend.search(line):
149150
tablelevel = ''
150151

152+
lastline = lineno
151153
for lineno, symbol in openers:
152154
print "Unmatched open delimiter '%s' on line %d" % (symbol, lineno)
153-
print 'Done checking %d lines.' % (lineno,)
155+
print 'Done checking %d lines.' % (lastline,)
154156
return 0
155157

156158
def main(args=None):

0 commit comments

Comments
 (0)