Skip to content

Commit 3581c53

Browse files
committed
fix(tools/update-readmes): whitespacing and newlines for md files
1 parent 9cf366b commit 3581c53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/update-readmes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def main():
7171
'check-plugins/{}/{} --help'.format(plugin, plugin)
7272
))
7373
# prepend 4 spaces to every non-empty line of the output
74-
_help = '\n'.join(' {}'.format(line) if line.strip() else line for line in _help.split('\n'))
75-
_help = ' ' + _help.strip()
74+
_help = '\n'.join('{}'.format(line) if line.strip() else line for line in _help.split('\n'))
75+
_help = _help.strip()
7676

7777
# got the plugin name, it's help output and the path to the README.
7878

@@ -81,7 +81,7 @@ def main():
8181
readme = lib.base.coe(lib.disk.read_file(readme_path))
8282
readme = re.sub(
8383
r'## Help\s*```text\s*?(.*?)\s*```\s*## Usage Examples',
84-
'## Help\n\n```text\n{}\n```\n\n## Usage Examples'.format(
84+
'## Help\n\n```text\n{}\n```\n\n\n## Usage Examples'.format(
8585
_help
8686
),
8787
readme,

0 commit comments

Comments
 (0)