diff options
author | Raymond Hettinger <python@rcn.com> | 2003-05-10 09:04:37 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-05-10 09:04:37 (GMT) |
commit | 4f0c6b2b70125b55ae41b0f85ee2ea006c81fb98 (patch) | |
tree | d85a6d5856b8c0f347cd3a2e1b02d874558e980b /Tools/scripts/texcheck.py | |
parent | b4c1d9be8f4280f145cd9e85e1f18ececf649de6 (diff) | |
download | cpython-4f0c6b2b70125b55ae41b0f85ee2ea006c81fb98.zip cpython-4f0c6b2b70125b55ae41b0f85ee2ea006c81fb98.tar.gz cpython-4f0c6b2b70125b55ae41b0f85ee2ea006c81fb98.tar.bz2 |
Minor fixups.
Diffstat (limited to 'Tools/scripts/texcheck.py')
-rw-r--r-- | Tools/scripts/texcheck.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/scripts/texcheck.py b/Tools/scripts/texcheck.py index ed3f42d..5264b24 100644 --- a/Tools/scripts/texcheck.py +++ b/Tools/scripts/texcheck.py @@ -8,6 +8,7 @@ Designed to catch common markup errors including: * Unbalanced of mismatched \begin and \end blocks. * Misspelled or invalid LaTeX commands. * Use of forward slashes instead of backslashes for commands. +* Table line size mismatches (only \lineii used in a tableii). Command line usage: python texcheck.py [-h] [-k keyword] foobar.tex @@ -137,7 +138,7 @@ def checkit(source, opts, morecmds=[]): if '-v' in opts: print ' --> ', openers - # Check table levels (make sure lineii only inside lineiii) + # Check table levels (make sure lineii only inside tableii) m = tablestart.search(line) if m: tablelevel = m.group(1) @@ -148,9 +149,10 @@ def checkit(source, opts, morecmds=[]): if tableend.search(line): tablelevel = '' + lastline = lineno for lineno, symbol in openers: print "Unmatched open delimiter '%s' on line %d" % (symbol, lineno) - print 'Done checking %d lines.' % (lineno,) + print 'Done checking %d lines.' % (lastline,) return 0 def main(args=None): |