Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadOptions was ignored with ini.Empty() #361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apenney
Copy link

@apenney apenney commented Nov 5, 2024

Describe the pull request

The Empty() function wasn't ensuring proper initialization of options by skipping the parsing phase that normally occurs with LoadSources. This caused different behavior between files created with Empty() versus those created with LoadSources.

Link to the issue: #360

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

@apenney apenney force-pushed the apenney/fix-backtick-on-write branch from 02307d5 to 4e5c433 Compare November 5, 2024 15:00
This ensures we initialize all the relevant parsing settings when using
Empty().  Previously behavior differed between LoadSources and Empty()
@apenney apenney force-pushed the apenney/fix-backtick-on-write branch from 4e5c433 to 0cd2eea Compare November 5, 2024 15:01
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.

1 participant