Skip to content

fix: indent blank=False empty first line - #1

Open
Wisernage wants to merge 1 commit into
mainfrom
fix/indent-blank-false-empty-first-2176
Open

Wisernage wants to merge 1 commit into
mainfrom
fix/indent-blank-false-empty-first-2176

Conversation

@Wisernage

Copy link
Copy Markdown

OpenJobs deliverable prep

When first=True and blank=False, do not indent an empty first line.
Previously indent(..., first=True) always prefixed indentation, so fully
empty input became spaces. Add regression tests and update the multiline
expectation that encoded the old behavior.

Fixes pallets#2176
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