Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8abd3707
Commit
8abd3707
authored
May 10, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixups.
parent
9ab3af54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Tools/scripts/texcheck.py
Tools/scripts/texcheck.py
+4
-2
No files found.
Tools/scripts/texcheck.py
View file @
8abd3707
...
...
@@ -8,6 +8,7 @@ Designed to catch common markup errors including:
* Unbalanced of mismatched
\
b
egin and
\
e
n
d blocks.
* Misspelled or invalid LaTeX commands.
* Use of forward slashes instead of backslashes for commands.
* Table line size mismatches (only
\
li
n
eii 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
linei
ii)
# Check table levels (make sure lineii only inside
table
ii)
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
.
' % (l
ineno
,)
print '
Done
checking
%
d
lines
.
' % (l
astline
,)
return 0
def main(args=None):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment