Skip to content

Keep blank lines when wrapping table cells - #442

Open
gyanu2507 wants to merge 1 commit into
astanin:masterfrom
gyanu2507:wrap-preserve-blank-lines
Open

Keep blank lines when wrapping table cells#442
gyanu2507 wants to merge 1 commit into
astanin:masterfrom
gyanu2507:wrap-preserve-blank-lines

Conversation

@gyanu2507

Copy link
Copy Markdown

Fixes #440.

_wrap_text_to_colwidths dropped empty lines (if line.strip() != "") before joining, so a cell like "foo\n\nbar" lost the blank line once maxcolwidths was set.

Empty wrap segments are kept so the blank line survives.

_wrap_text_to_colwidths dropped empty segments, so a cell with a blank
line collapsed when maxcolwidths was set.
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