mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Indented blocks should also be doc-commented
This commit is contained in:
parent
84ad0604f4
commit
3983953e72
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue