Skip to content

Commit a46b695

Browse files
authored
Merge pull request #488 from ReproNim/fix/empty-cont-line
remove empty lines
2 parents d62b72f + 963e6fc commit a46b695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neurodocker/reproenv/renderers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ def _indent_run_instruction(string: str, indent=4) -> str:
717717
lines = string.splitlines()
718718
for ii, line in enumerate(lines):
719719
line = line.rstrip()
720+
if not line:
721+
continue
720722
is_last_line = ii == len(lines) - 1
721723
already_cont = line.startswith(("&&", "&", "||", "|", "fi"))
722724
is_comment = line.startswith("#")

0 commit comments

Comments
 (0)