Skip to content

Commit

Permalink
fix spurious \n in script items for builder2ibek.support
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 7, 2023
1 parent ccff84a commit ab560a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder2ibek.support.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ def _make_init_script(self, builder_object, func_name, script, arginfo, when=Non
missing = set(command_args) - set(arginfo.all_args)
comment = MISSING + ", ".join(missing) if missing else None

# remove spurious \n from the script text (not newlines)
script_text = script_text.replace(r"\n", "")
script_item.insert(3, "value", script_text, comment=comment)

script.append(script_item)
Expand Down

0 comments on commit ab560a6

Please sign in to comment.