From 12a4f4bbce1c56b70373ac1a619765c0d9540784 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 4 Feb 2013 23:39:45 +0000 Subject: Tweak HTML output. Send blocks as paragraphs, rather than lines. Send lines as spans. --- fitz/dev_text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fitz') diff --git a/fitz/dev_text.c b/fitz/dev_text.c index e5b2c927..10096fcf 100644 --- a/fitz/dev_text.c +++ b/fitz/dev_text.c @@ -626,11 +626,11 @@ fz_print_text_page_html(fz_context *ctx, fz_output *out, fz_text_page *page) for (block_n = 0; block_n < page->len; block_n++) { block = &page->blocks[block_n]; - fz_printf(out, "
\n"); + fz_printf(out, "

\n"); for (line_n = 0; line_n < block->len; line_n++) { line = &block->lines[line_n]; - fz_printf(out, "

"); + fz_printf(out, ""); style = NULL; for (span_n = 0; span_n < line->len; span_n++) @@ -661,9 +661,9 @@ fz_print_text_page_html(fz_context *ctx, fz_output *out, fz_text_page *page) } if (style) fz_print_style_end(out, style); - fz_printf(out, "

\n"); + fz_printf(out, "\n"); } - fz_printf(out, "
\n"); + fz_printf(out, "

\n"); } fz_printf(out, "\n"); -- cgit v1.2.3