Skip to content

[FTD #5] support underline for multiple lines of text#11

Merged
TobiasRump merged 5 commits into
mainfrom
bugfix/FTD-5-underlined-text-multiple-lines
Jun 13, 2025
Merged

[FTD #5] support underline for multiple lines of text#11
TobiasRump merged 5 commits into
mainfrom
bugfix/FTD-5-underlined-text-multiple-lines

Conversation

@TobiasRump
Copy link
Copy Markdown
Collaborator

@TobiasRump TobiasRump commented May 27, 2025

🛠 Fix: Multi-line underline rendering issue

📌 Related Issue

Closes #5

As seen in the screenshot, when the text that is intended to be underlined spans over multiple lines, the underline appears only below the last line instead of each line being underlined.

✅ What’s Changed

This PR updates the underline styling logic to ensure that multi-line text is consistently underlined line by line. Previously, only the final line received the underline styling, leading to inconsistent and visually incorrect results.

Additionally, I increased a little more the curve for line. There is the opportunity to set it from outside how curved the line should be displayed.

🧪 How It Works

Instead of applying a single underline across a block of multi-line text, we ensure line breaks do not break the underline visual appearance.

🔍 Confirmation

  • Confirmed underline appears on every line.
  • No regression on single-line underlined text.

📸 Before / After

Before After
before after

@TobiasRump TobiasRump force-pushed the bugfix/FTD-5-underlined-text-multiple-lines branch 3 times, most recently from ab00aa9 to 8e423cc Compare May 27, 2025 21:56
@TobiasRump TobiasRump self-assigned this May 27, 2025
@TobiasRump TobiasRump requested review from NorinB and jay-k98 May 27, 2025 21:58
@TobiasRump TobiasRump force-pushed the bugfix/FTD-5-underlined-text-multiple-lines branch 4 times, most recently from 32c0a1e to e68fe29 Compare June 13, 2025 09:49
@TobiasRump TobiasRump force-pushed the bugfix/FTD-5-underlined-text-multiple-lines branch from e68fe29 to 3daa8f5 Compare June 13, 2025 09:50
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a golden test?

@TobiasRump TobiasRump merged commit 3150524 into main Jun 13, 2025
1 check passed
@TobiasRump TobiasRump deleted the bugfix/FTD-5-underlined-text-multiple-lines branch September 3, 2025 19:57
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.

[QUESTION] Underlined text multiple lines

2 participants