[Python-checkins] python/dist/src/Tools/scripts texcheck.py, 1.7,
1.8
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Sep 8 11:33:33 EDT 2003
Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv21178
Modified Files:
texcheck.py
Log Message:
Check for \NULL markup errors.
Index: texcheck.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/texcheck.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** texcheck.py 25 Aug 2003 04:36:21 -0000 1.7
--- texcheck.py 8 Sep 2003 17:33:31 -0000 1.8
***************
*** 100,103 ****
--- 100,104 ----
braces = re.compile(r'({)|(})')
doubledwords = re.compile(r'(\b[A-za-z]+\b) \b1円\b')
+ nullmarkup = re.compile(r'\NULL(?!\{\})')
openers = [] # Stack of pending open delimiters
***************
*** 151,154 ****
--- 152,159 ----
if '\\' + cmd in validcmds:
print 'Warning, forward slash used on line %d with cmd: /%s' % (lineno, cmd)
+
+ # Check for bad markup
+ if nullmarkup.search(line):
+ print r'Warning, \NULL should be written as \NULL{} on line %d' % (lineno,)
# Validate commands
More information about the Python-checkins
mailing list