Skip to content

Commit

Permalink
Merge pull request #488 from ReproNim/fix/empty-cont-line
Browse files Browse the repository at this point in the history
remove empty lines
  • Loading branch information
satra committed Jan 14, 2023
2 parents d62b72f + 963e6fc commit a46b695
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neurodocker/reproenv/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ def _indent_run_instruction(string: str, indent=4) -> str:
lines = string.splitlines()
for ii, line in enumerate(lines):
line = line.rstrip()
if not line:
continue
is_last_line = ii == len(lines) - 1
already_cont = line.startswith(("&&", "&", "||", "|", "fi"))
is_comment = line.startswith("#")
Expand Down

0 comments on commit a46b695

Please sign in to comment.