From ca01073483cbb63a77e3cd2e39993c7dd26fe856 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 10 Oct 2018 15:23:56 +0200 Subject: Don't rely on CSS classes in HTML5 text output. This allows the output to be more easily embedded in other HTML documents. --- source/fitz/stext-output.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source/fitz/stext-output.c') diff --git a/source/fitz/stext-output.c b/source/fitz/stext-output.c index 154dfedb..f60ce993 100644 --- a/source/fitz/stext-output.c +++ b/source/fitz/stext-output.c @@ -80,7 +80,7 @@ fz_print_stext_image_as_html(fz_context *ctx, fz_output *out, fz_stext_block *bl int w = block->bbox.x1 - block->bbox.x0; int h = block->bbox.y1 - block->bbox.y0; - fz_write_printf(ctx, out, "u.i.image); fz_write_string(ctx, out, "\">\n"); } @@ -101,7 +101,7 @@ fz_print_stext_block_as_html(fz_context *ctx, fz_output *out, fz_stext_block *bl x = line->bbox.x0; y = line->bbox.y0; - fz_write_printf(ctx, out, "

", y, x); + fz_write_printf(ctx, out, "

", y, x); font = NULL; for (ch = line->first_char; ch; ch = ch->next) @@ -148,7 +148,7 @@ fz_print_stext_page_as_html(fz_context *ctx, fz_output *out, fz_stext_page *page int w = page->mediabox.x1 - page->mediabox.x0; int h = page->mediabox.y1 - page->mediabox.y0; - fz_write_printf(ctx, out, "

\n", w, h); + fz_write_printf(ctx, out, "
\n", w, h); for (block = page->first_block; block; block = block->next) { @@ -169,9 +169,7 @@ fz_print_stext_header_as_html(fz_context *ctx, fz_output *out) fz_write_string(ctx, out, "\n"); fz_write_string(ctx, out, "\n"); fz_write_string(ctx, out, "\n"); fz_write_string(ctx, out, "\n"); -- cgit v1.2.3