We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c32b0 commit bec818eCopy full SHA for bec818e
scripts/reformat_docs.py
@@ -206,9 +206,7 @@ def replace_block(
206
if header_formatter.is_block_valid(block):
207
converted = header_formatter.convert(header_from_block(block))
208
if header_formatter.needs_new_header(file_contents) and converted:
209
- return '%s%s' % (
210
- block_contents.group(0),
211
- header_formatter.convert(header_from_block(block)) + '\n')
+ return block_contents.group(0) + converted + '\n'
212
return block_contents.group(0)
213
214
if class_formatter.is_block_valid(block):
0 commit comments