We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e4290 commit bca08ddCopy full SHA for bca08dd
scripts/reformat_docs.py
@@ -199,9 +199,12 @@ def replace_block(
199
{f.name: f.contents for f in parse_fields(block_contents.group(1))})
200
201
if header_formatter.is_block_valid(block):
202
- return '%s%s\n' % (
203
- block_contents.group(0),
204
- header_formatter.convert(header_from_block(block)))
+ converted = header_formatter.convert(header_from_block(block))
+ if converted:
+ return '%s%s' % (
205
+ block_contents.group(0),
206
+ header_formatter.convert(header_from_block(block)) + '\n')
207
+ return block_contents.group(0)
208
209
if class_formatter.is_block_valid(block):
210
return class_formatter.convert(class_from_block(block))
0 commit comments