This corrects the calculated width of events that contain \N\N,
which previously included the width of the glyph corresponding
to '\n' (more generally, for n consecutive line breaks, only
the first glyph was skipped and n-1 glyphs were included).
Reported on IRC.
}
// A break itself can contain a whitespace, too
cur = ti->glyphs + i;
- if (cur->symbol == ' ') {
+ if (cur->symbol == ' ' || cur->symbol == '\n') {
cur->skip++;
// Mark whitespace after
j = i + 1;