Replace one ugly upcall with *2* ugly upcalls.

This commit is contained in:
rajeevvp
2020-02-01 07:58:46 +05:30
committed by GitHub
parent 064d300cb0
commit 0fbf14b89f

View File

@@ -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;
}