Pastel
Pastel

Reputation: 71

Line Break with Pango

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?

Upvotes: 7

Views: 2245

Answers (1)

Drone2537
Drone2537

Reputation: 121

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

Upvotes: 12

Related Questions