don't print PLAINTEXT = ...

This commit is contained in:
Guido van Rossum 1995-03-28 13:33:45 +00:00
parent cfc2f980f6
commit 557ed94ebb
2 changed files with 4 additions and 4 deletions

View File

@ -2095,8 +2095,8 @@ def dumpit(buf, wm, pp):
elif ch.chtype == chunk_type(COMMENT): elif ch.chtype == chunk_type(COMMENT):
## print 'COMMENT: previous chunk =', pp[i-2] ## print 'COMMENT: previous chunk =', pp[i-2]
if pp[i-2].chtype == chunk_type(PLAIN): ## if pp[i-2].chtype == chunk_type(PLAIN):
print 'PLAINTEXT =', `s(buf, pp[i-2].data)` ## print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
if s(buf, ch.data) and \ if s(buf, ch.data) and \
regex.match('^[ \t]*$', s(buf, ch.data)) < 0: regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
if i >= 2 and pp[i-2].chtype not in \ if i >= 2 and pp[i-2].chtype not in \

View File

@ -2095,8 +2095,8 @@ def dumpit(buf, wm, pp):
elif ch.chtype == chunk_type(COMMENT): elif ch.chtype == chunk_type(COMMENT):
## print 'COMMENT: previous chunk =', pp[i-2] ## print 'COMMENT: previous chunk =', pp[i-2]
if pp[i-2].chtype == chunk_type(PLAIN): ## if pp[i-2].chtype == chunk_type(PLAIN):
print 'PLAINTEXT =', `s(buf, pp[i-2].data)` ## print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
if s(buf, ch.data) and \ if s(buf, ch.data) and \
regex.match('^[ \t]*$', s(buf, ch.data)) < 0: regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
if i >= 2 and pp[i-2].chtype not in \ if i >= 2 and pp[i-2].chtype not in \