Skip to content

Preserve whitespace-only lines when wrapping - #423

Merged
jquast merged 1 commit into
jquast:masterfrom
Rajvira10:fix/whitespace-only-wrapping
Oct 19, 2026
Merged

jquast merged 1 commit into
jquast:masterfrom
Rajvira10:fix/whitespace-only-wrapping

Conversation

@Rajvira10

Copy link
Copy Markdown

Terminal.wrap(..., drop_whitespace=False) currently discards lines containing only spaces or tabs. Forward those lines to wcwidth while retaining explicit empty lines.

Four regression cases fail before the fix. All 69 selected wrapping/formatter tests, Mypy and changed-file Flake8 checks pass.

@Rajvira10
Rajvira10 marked this pull request as ready for review October 16, 2026 17:46
@codspeed

codspeed Bot commented Oct 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing Rajvira10:fix/whitespace-only-wrapping (d31561b) with master (328c75d)

Open in CodSpeed

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.74%. Comparing base (328c75d) to head (d31561b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #423   +/-   ##
=======================================
  Coverage   97.74%   97.74%           
=======================================
  Files          13       13           
  Lines        4117     4118    +1     
  Branches      696      696           
=======================================
+ Hits         4024     4025    +1     
  Misses         71       71           
  Partials       22       22           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jquast
jquast merged commit a28ee7b into jquast:master Oct 19, 2026
15 checks passed
jquast added a commit that referenced this pull request Oct 19, 2026
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.

2 participants