mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Word-wrap the list of cross-references.
This commit is contained in:
parent
79c009d767
commit
da79389f10
1 changed files with 5 additions and 1 deletions
|
@ -1398,7 +1398,11 @@ please set the environment variable PYTHONDOCS to indicate their location.
|
||||||
parser.feed(document)
|
parser.feed(document)
|
||||||
buffer = replace(buffer.getvalue(), '\xa0', ' ', '\n', '\n ')
|
buffer = replace(buffer.getvalue(), '\xa0', ' ', '\n', '\n ')
|
||||||
pager(' ' + strip(buffer) + '\n')
|
pager(' ' + strip(buffer) + '\n')
|
||||||
if xrefs: self.output.write('\nRelated help topics: %s\n' % xrefs)
|
if xrefs:
|
||||||
|
buffer = StringIO.StringIO()
|
||||||
|
formatter.DumbWriter(buffer).send_flowing_data(
|
||||||
|
'Related help topics: ' + join(split(xrefs), ', ') + '\n')
|
||||||
|
self.output.write('\n%s\n' % buffer.getvalue())
|
||||||
|
|
||||||
def listmodules(self, key=''):
|
def listmodules(self, key=''):
|
||||||
if key:
|
if key:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue