Skip to content

Commit

Permalink
per #1534, fix logic to properly adding a trailing semi-colon for ext…
Browse files Browse the repository at this point in the history
…ra field options if not found
  • Loading branch information
georgemccabe committed Apr 18, 2022
1 parent 2a42d30 commit 6e95615
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metplus/wrappers/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,11 @@ def get_field_info(self, d_type='', v_name='', v_level='', v_thresh=None,

# handle extra options if set
if v_extra:
field += f' {v_extra}'
extra = v_extra.strip()
# if trailing semi-colon is not found, add it
if not extra.endswith(';'):
extra = f"{extra};"
field += f' {extra}'

# add curly braces around field info
if add_curly_braces:
Expand Down

0 comments on commit 6e95615

Please sign in to comment.