Skip to content

Commit

Permalink
Fix comments that flows to next un-commented parameter #976
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Jun 14, 2018
1 parent 962a0f1 commit 5b1288e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sos/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,6 @@ def _read(self, fp: TextIOBase) -> None:
continue
cursect.add_directive(
directive_name, directive_value, lineno)
self.clear_comment()
else:
if directive_name == 'parameter':
if comment_block == 2:
Expand All @@ -1178,7 +1177,7 @@ def _read(self, fp: TextIOBase) -> None:
# let us check if this is an acture action, or a type hint
cursect.add_script(
directive_name, directive_value, lineno)
self.clear_comment()
self.clear_comment()
continue
# if section is in script mode?
if cursect and cursect.isValid() and cursect.category() == 'script':
Expand Down

0 comments on commit 5b1288e

Please sign in to comment.