Skip to content
Snippets Groups Projects
Commit c6bafe9c authored by Marko Mecina's avatar Marko Mecina
Browse files

fix commenting of multi-line text in python script export

parent c1a68070
Branches
Tags
No related merge requests found
...@@ -32,7 +32,7 @@ def run(jfile, outfile): ...@@ -32,7 +32,7 @@ def run(jfile, outfile):
script += '# Software Version: ' + data['_iasw_version'] + '\n' script += '# Software Version: ' + data['_iasw_version'] + '\n'
script += '# Author: UVIE\n# Date: {}\n'.format(date) script += '# Author: UVIE\n# Date: {}\n'.format(date)
script += '#--------------------------------------------\n\n' script += '#--------------------------------------------\n\n'
script += '# COMMENT: {}\n\n\n'.format(data['_comment']) script += '# COMMENT: {}\n\n\n'.format(data['_comment'].replace('\n', '\n# '))
script += '# Precond.\n# {}\n'.format(data['_precon_descr']) script += '# Precond.\n# {}\n'.format(data['_precon_descr'])
# script += '{}\n\n\n'.format(data['_precon_code'].strip()) # Add the precondition code # script += '{}\n\n\n'.format(data['_precon_code'].strip()) # Add the precondition code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment