Skip to content

Fixed issue 89 - a lamp line beginning with a # but without a space was#90

Open
craigwarner-ufastro wants to merge 1 commit into
mainfrom
line_list_bug_issue_89
Open

Fixed issue 89 - a lamp line beginning with a # but without a space was#90
craigwarner-ufastro wants to merge 1 commit into
mainfrom
line_list_bug_issue_89

Conversation

@craigwarner-ufastro

Copy link
Copy Markdown

not omitted as it should be. Now both
'#ArI...'
and
'# ArI...'
as well as
' # ArI...'
will all be treated as comments.

This fixes #89

not omitted as it should be.  Now both
'#ArI...'
and
'# ArI...'
as well as
' # ArI...'
will all be treated as comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Specex lamp line list parsing so that lines starting with # are always treated as comments (including #ArI... without a space), preventing accidentally including commented-out lamp lines in the fit (fixes issue #89).

Changes:

  • Skip empty/whitespace-only lines before attempting to parse them.
  • Skip lines whose first non-whitespace character is # before parsing tokens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line list comment bug

2 participants