Skip to content

Fix trailing whitespace and line-length in generated column annotations#10

Merged
boserh merged 1 commit into
mainfrom
fix/line-length-wrapping
Jun 30, 2026
Merged

Fix trailing whitespace and line-length in generated column annotations#10
boserh merged 1 commit into
mainfrom
fix/line-length-wrapping

Conversation

@boserh

@boserh boserh commented Jun 30, 2026

Copy link
Copy Markdown
Owner

ColumnFormatter was emitting trailing spaces on column lines because the left-hand side was built with %-width padding and only stripped on the final joined line, not before passing through the wrapping branch. This produced:

trailing whitespace offense (padded left with no options)

line-too-long offense (continuation line included deep indent)

Fix: rstrip left immediately after formatting, before any output path. indent_size is now derived from the stripped left length, keeping multiline default values visually aligned under their opening token.

ColumnFormatter was emitting trailing spaces on column lines because
the left-hand side was built with %-width padding and only stripped
on the final joined line, not before passing through the wrapping
branch. This produced:

  # trailing whitespace offense (padded left with no options)
  # line-too-long offense (continuation line included deep indent)

Fix: rstrip left immediately after formatting, before any output path.
indent_size is now derived from the stripped left length, keeping
multiline default values visually aligned under their opening token.
@boserh boserh force-pushed the fix/line-length-wrapping branch from b98a80f to ff79a43 Compare June 30, 2026 14:29
@boserh boserh merged commit 61da9ec into main Jun 30, 2026
4 checks passed
@boserh boserh deleted the fix/line-length-wrapping branch June 30, 2026 14:31
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