Show More
@@ -94,8 +94,13 b' def makeitemsdoc(topic, doc, marker, ite' | |||||
94 | continue |
|
94 | continue | |
95 | text = gettext(text) |
|
95 | text = gettext(text) | |
96 | lines = text.splitlines() |
|
96 | lines = text.splitlines() | |
97 | lines[1:] = [(' ' + l.strip()) for l in lines[1:]] |
|
97 | doclines = [(lines[0])] | |
98 | entries.append('\n'.join(lines)) |
|
98 | for l in lines[1:]: | |
|
99 | # Stop once we find some Python doctest | |||
|
100 | if l.strip().startswith('>>>'): | |||
|
101 | break | |||
|
102 | doclines.append(' ' + l.strip()) | |||
|
103 | entries.append('\n'.join(doclines)) | |||
99 | entries = '\n\n'.join(entries) |
|
104 | entries = '\n\n'.join(entries) | |
100 | return doc.replace(marker, entries) |
|
105 | return doc.replace(marker, entries) | |
101 |
|
106 |
General Comments 0
You need to be logged in to leave comments.
Login now