Skip to content

Preserve blank lines when wrapping multiline cells - #521

Open
Alanmupa wants to merge 1 commit into
astanin:masterfrom
Alanmupa:fix/preserve-blank-lines-in-wrapped-cells
Open

Alanmupa wants to merge 1 commit into
astanin:masterfrom
Alanmupa:fix/preserve-blank-lines-in-wrapped-cells

Conversation

@Alanmupa

Copy link
Copy Markdown

Hi! When I use maxcolwidths on a multiline cell, the formatter removes blank lines between paragraphs. I reproduced the behavior described in #440 and added a test that compares automatic wrapping with the same cell wrapped by hand, including the blank line.

The formatter already produces an empty string when wrapping a blank line. Keeping that result preserves the vertical spacing while still wrapping the surrounding text to the requested width.

Fixes #440.

I ran the full suite (383 passed, 1 skipped) and the repository's Ruff checks. I used Codex to help prepare and validate the patch.

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.

Empty line handling fix

1 participant