mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
(lib<all sorts of stuff>.tex):
Merged in many typo corrections and fixes to support GNU info processing; submitted by Tamito Kajiyama.
This commit is contained in:
parent
6dc2aae3cd
commit
4b3f0312c9
41 changed files with 154 additions and 80 deletions
|
@ -827,7 +827,7 @@ class Wobj:
|
|||
self.data = self.data + data
|
||||
|
||||
# ignore these commands
|
||||
ignoredcommands = ('bcode', 'ecode')
|
||||
ignoredcommands = ('bcode', 'ecode', 'hline', 'fulllineitems', 'small')
|
||||
# map commands like these to themselves as plaintext
|
||||
wordsselves = ('UNIX', 'ABC', 'C', 'ASCII', 'EOF', 'LaTeX')
|
||||
# \{ --> {, \} --> }, etc
|
||||
|
@ -1978,6 +1978,12 @@ def dumpit(buf, wm, pp):
|
|||
|
||||
if ch.chtype == chunk_type[CSNAME]:
|
||||
s_buf_data = s(buf, ch.data)
|
||||
if s_buf_data == 'e':
|
||||
wm('\\')
|
||||
continue
|
||||
if s_buf_data == '$':
|
||||
wm('$')
|
||||
continue
|
||||
wm('@' + s_buf_data)
|
||||
if s_buf_data == 'node' and \
|
||||
pp[i].chtype == chunk_type[PLAIN] and \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue