Skip to content

fix: Render linebreaks after blocks with fixed height#1581

Open
exomo wants to merge 1 commit into
daohoangson:masterfrom
exomo:fix/1280-line-breaks-after-block
Open

fix: Render linebreaks after blocks with fixed height#1581
exomo wants to merge 1 commit into
daohoangson:masterfrom
exomo:fix/1280-line-breaks-after-block

Conversation

@exomo
Copy link
Copy Markdown

@exomo exomo commented Apr 7, 2026

Consecutive line breaks between block elements get converted to vertical space with the expected height. This avoids an issue where the RichText widget renders additional linebreaks after a block element with the same hight as the block element instead of returning to the default line height of the text.

Fixes #1280

Disclaimer: I used AI assistance to come up with the fix, but I verified that it looks good to the best of my knowledge.

grafik

Consecutive line breaks following a block element get converted to vertical space with hte expected height. This avoids an issue where the RichText widget renders additional linebreaks after a block element with the same hight as the block element instead of returning to the default line height of the text.
@exomo exomo force-pushed the fix/1280-line-breaks-after-block branch from 30c1c8e to f68e03b Compare April 7, 2026 17:54
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.

Image with 2 <br> add extra space

1 participant