-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ini_file: fix unmatched whitespace before comment #10102
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
ini_file: fix unmatched whitespace before comment #10102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! A first comment below.
changelogs/fragments/10102-ini_file-fix-unmatched-whitespace-before-comment.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: Felix Fontein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #10116 🤖 @patchback |
* ini_file: fix unmatched whitespace before comment * Add changelog fragment * Update changelog fragment: bugfixes to minor_changes Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: sibebleuze <> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 43eb342)
@sibebleuze thanks for your contribution! |
…espace before comment (#10116) ini_file: fix unmatched whitespace before comment (#10102) * ini_file: fix unmatched whitespace before comment * Add changelog fragment * Update changelog fragment: bugfixes to minor_changes --------- Co-authored-by: sibebleuze <> (cherry picked from commit 43eb342) Co-authored-by: Sibe Bleuzé <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
Expanded the regular expression for inactive ("commented out") options to also match when the comment symbol (
#
or;
) is preceded by whitespace.Fixes #8539
ISSUE TYPE
COMPONENT NAME
ini_file
ADDITIONAL INFORMATION
Example input
Example task using ini_file module
Output before this change
Output after this change