Skip to content

Commit

Permalink
Updated comment finder with @tjlaboss feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Apr 15, 2024
1 parent 97e8172 commit f53c338
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions montepy/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ def is_comment(line):
non_blank_comment = upper_start and line.lstrip().upper().startswith("C ")
if non_blank_comment:
return True
blank_comment = (
"C\n" == upper_start.lstrip()
or "C\r\n" == upper_start.lstrip()
or ("C" == upper_start and "\n" not in line)
blank_comment = ("C" == upper_start.strip() and "\n" in line) or (
"C" == upper_start and "\n" not in line
)
return blank_comment or non_blank_comment
return blank_comment


def make_prop_val_node(
Expand Down

0 comments on commit f53c338

Please sign in to comment.