Line Break with Pango
Asked Answered
A

1

5

According to this documentation, Pango is able to handle some convenience tags like <b> for bold, or <i> for italic.

However, there's nothing for line break, like the commonly used <br>. Is there a way to make Pango able to handle line break?

Anglomania answered 2/7, 2019 at 7:57 Comment(0)
F
10

Through some guesswork and trial and error, I've discovered that carriage return (\r), not newline (\n), will cause pango to insert a break.

Fennessy answered 8/9, 2019 at 23:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.