Consecutive forced breaks (\N\N) can be used to create empty lines of
text in other renderers. This doesn't work with the current text
layouter (wrap_lines_smart). This hack inserts a space glyph between two
consecutive forced breaks to get around this limitation.
if (code == 0)
break;
+ // Insert space between two forced breaks to create empty lines
+ // FIXME: should probably be done in wrap_lines_smart,
+ // this is a hack
+ if (previous == '\n' && code == '\n') {
+ code = ' ';
+ p -= 2;
+ }
+
if (text_info->length >= text_info->max_glyphs) {
// Raise maximum number of glyphs
text_info->max_glyphs *= 2;