Skip to content

gh-161317: configparser.write() raises InvalidWriteError for multiline values with leading whitespace - #161337

Closed
BHUVANSH855 wants to merge 1 commit into
python:mainfrom
BHUVANSH855:fix-161317
Closed

BHUVANSH855 wants to merge 1 commit into
python:mainfrom
BHUVANSH855:fix-161317

Conversation

@BHUVANSH855

Copy link
Copy Markdown
Contributor

Issue: gh-161317

configparser.write() would silently produce output that read back differently when a value contained a continuation line with leading whitespace — the whitespace was stripped on read-back with no error.

Fix: Raise InvalidWriteError when a value's continuation line starts with a space or tab, consistent with the existing guard for keys with leading whitespace (gh-96239).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants