Skip to content

Reject input that spans multiple paragraphs - #219

Merged
khaledhosny merged 1 commit into
mainfrom
no-par-sep
Jul 19, 2026
Merged

khaledhosny merged 1 commit into
mainfrom
no-par-sep

Conversation

@khaledhosny

Copy link
Copy Markdown
Collaborator

raqm expects the text to be a single paragraph. Inputting multiple paragraphs at once is undefined behaviour.

Enforce this by making raqm_layout() fail when the text contains a paragraph separator, and use stronger words about this requirement on raqm_set_text() docs.

Also drop the disabled cursor-position-GB3 test, at it contains CR+LF.

raqm expects the text to be a single paragraph. Inputting multiple
paragraphs at once is undefined behaviour.

Enforce this by making raqm_layout() fail when the text contains a
paragraph separator, and use stronger words about this requirement on
raqm_set_text() docs.

Also drop the disabled cursor-position-GB3 test, at it contains CR+LF.
@khaledhosny
khaledhosny merged commit a7c8695 into main Jul 19, 2026
8 checks passed
@khaledhosny
khaledhosny deleted the no-par-sep branch July 19, 2026 17:42
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