Show More
@@ -278,7 +278,8 b' def prunecomments(blocks):' | |||||
278 | i = 0 |
|
278 | i = 0 | |
279 | while i < len(blocks): |
|
279 | while i < len(blocks): | |
280 | b = blocks[i] |
|
280 | b = blocks[i] | |
281 |
if b['type'] == 'paragraph' and b['lines'][0].startswith('.. ') |
|
281 | if b['type'] == 'paragraph' and (b['lines'][0].startswith('.. ') or | |
|
282 | b['lines'] == ['..']): | |||
282 | del blocks[i] |
|
283 | del blocks[i] | |
283 | if i < len(blocks) and blocks[i]['type'] == 'margin': |
|
284 | if i < len(blocks) and blocks[i]['type'] == 'margin': | |
284 | del blocks[i] |
|
285 | del blocks[i] |
@@ -221,6 +221,10 b' Some text.' | |||||
221 | .. An indented comment |
|
221 | .. An indented comment | |
222 |
|
222 | |||
223 | Some indented text. |
|
223 | Some indented text. | |
|
224 | ||||
|
225 | .. | |||
|
226 | ||||
|
227 | Empty comment above | |||
224 | """ |
|
228 | """ | |
225 |
|
229 | |||
226 | debugformat('comments', comments, 30) |
|
230 | debugformat('comments', comments, 30) |
@@ -339,5 +339,7 b' comments formatted to fit within 30 char' | |||||
339 | Some text. |
|
339 | Some text. | |
340 |
|
340 | |||
341 | Some indented text. |
|
341 | Some indented text. | |
|
342 | ||||
|
343 | Empty comment above | |||
342 | ---------------------------------------------------------------------- |
|
344 | ---------------------------------------------------------------------- | |
343 |
|
345 |
General Comments 0
You need to be logged in to leave comments.
Login now