KEMBAR78
COMMON: Strip whitespace before checking if an INI line is a comment. by elasota · Pull Request #4991 · scummvm/scummvm · GitHub
Skip to content

Conversation

@elasota
Copy link
Contributor

@elasota elasota commented May 8, 2023

Based on comments from https://bugs.scummvm.org/ticket/14447 it appears that some versions of Reah have lines in the subtitle data which are whitespace followed by a comment. The current code doesn't handle this properly, it only discards whitespace-only, comment-only, and empty lines.

@mduggan
Copy link
Contributor

mduggan commented May 8, 2023

As one of the users of this class I think the change is probably fine, but it would be nice to also add some test cases to test/common/ini-file.h

@elasota elasota force-pushed the fix-ini-whitespace branch from a08cfb7 to 913cf80 Compare May 8, 2023 12:33
@bluegr
Copy link
Member

bluegr commented May 10, 2023

Nice work! Clean and simple change, and an associated test has been added, too.

Merging

@bluegr bluegr merged commit f30ab9b into scummvm:master May 10, 2023
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.

4 participants