Show More
@@ -94,8 +94,13 def makeitemsdoc(topic, doc, marker, ite | |||
|
94 | 94 | continue |
|
95 | 95 | text = gettext(text) |
|
96 | 96 | lines = text.splitlines() |
|
97 | lines[1:] = [(' ' + l.strip()) for l in lines[1:]] | |
|
98 | entries.append('\n'.join(lines)) | |
|
97 | doclines = [(lines[0])] | |
|
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 | 104 | entries = '\n\n'.join(entries) |
|
100 | 105 | return doc.replace(marker, entries) |
|
101 | 106 |
General Comments 0
You need to be logged in to leave comments.
Login now