From 476f9dbb75029552e8f3ba4c975c2f6b0cd5325f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 28 Dec 2020 17:47:31 -0800 Subject: [PATCH] html: Step toward better handling of text_items. There's more work to do to get the fonts, especially, correct. --- src/output/html.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/output/html.c b/src/output/html.c index 64db78dc8e..9a803d1ab0 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -308,7 +308,9 @@ html_submit (struct output_driver *driver, break; case TEXT_ITEM_LOG: - print_title_tag (html->file, "pre", s); /* should be

*/ + fprintf (html->file, "

"); + escape_string (html->file, s, " ", "
"); + fprintf (html->file, "

\n"); break; } } @@ -316,7 +318,9 @@ html_submit (struct output_driver *driver, { const struct message_item *message_item = to_message_item (output_item); char *s = msg_to_string (message_item_get_msg (message_item)); - print_title_tag (html->file, "p", s); + fprintf (html->file, "

"); + escape_string (html->file, s, " ", "
"); + fprintf (html->file, "

\n"); free (s); } } -- 2.30.2