Indented blocks should also be doc-commented

This commit is contained in:
Kovid Goyal 2018-06-05 13:54:39 +05:30
parent 84ad0604f4
commit 3983953e72
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -149,7 +149,11 @@ def wrapped_block(lines):
)
for block, indent_size in iter_blocks(lines):
if indent_size > 0:
yield from iter(block)
for line in block:
if not line:
yield line
else:
yield '#: ' + line
else:
for line in wrapper.wrap('\n'.join(block)):
yield line