| @@ -2028,14 +2028,15 @@ def showtopic(self, topic, more_xrefs=''): |
|
|
| 2028 |
2028 |
except KeyError: |
| 2029 |
2029 |
self.output.write('no documentation found for %s\n' % repr(topic)) |
| 2030 |
2030 |
return |
| 2031 |
|
-pager(doc.strip() + '\n') |
|
2031 |
+doc = doc.strip() + '\n' |
| 2032 |
2032 |
if more_xrefs: |
| 2033 |
2033 |
xrefs = (xrefs or '') + ' ' + more_xrefs |
| 2034 |
2034 |
if xrefs: |
| 2035 |
2035 |
import textwrap |
| 2036 |
2036 |
text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n' |
| 2037 |
2037 |
wrapped_text = textwrap.wrap(text, 72) |
| 2038 |
|
-self.output.write('\n%s\n' % ''.join(wrapped_text)) |
|
2038 |
+doc += '\n%s\n' % '\n'.join(wrapped_text) |
|
2039 |
+pager(doc) |
| 2039 |
2040 |
|
| 2040 |
2041 |
def _gettopic(self, topic, more_xrefs=''): |
| 2041 |
2042 |
"""Return unbuffered tuple of (topic, xrefs). |