From: Ben Pfaff Date: Tue, 29 Dec 2020 01:47:31 +0000 (-0800) Subject: html: Step toward better handling of text_items. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476f9dbb75029552e8f3ba4c975c2f6b0cd5325f;p=pspp html: Step toward better handling of text_items. There's more work to do to get the fonts, especially, correct. --- 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); } }