mirror of
https://github.com/kevinboone/epub2txt2
synced 2026-04-25 14:24:56 +02:00
Replace one ugly upcall with *2* ugly upcalls.
This commit is contained in:
@@ -139,8 +139,9 @@ void _wraptext_flush_string (WrapTextContext *context, WT_UTF32 *s)
|
||||
|
||||
if (l + context->priv->column + 1 >= context->priv->width)
|
||||
{
|
||||
xhtml_emit_fmt_eol_pre (context); /* upcall: turn-off all ANSI highlghting before EOL */
|
||||
_wraptext_emit_newline (context);
|
||||
xhtml_emit_fmt_eol (context);
|
||||
xhtml_emit_fmt_eol_post (context); /* upcall: restore ANSI highlighting after EOL */
|
||||
context->priv->column = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user