From f65ef92fb57e599a6ee7d473f9b13590cb0317b7 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Wed, 16 Feb 2005 20:20:34 +0000 Subject: [PATCH] * src/devices/grohtml/post-html.cpp (html_printer::is_line_start, html_printer::start_font): Fix handling of preformatted text. --- ChangeLog | 5 +++++ src/devices/grohtml/post-html.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 336919ee..8eb0ab16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-16 Gaius Mulley + + * src/devices/grohtml/post-html.cpp (html_printer::is_line_start, + html_printer::start_font): Fix handling of preformatted text. + 2004-02-15 Gaius Mulley These patches modify the indentation implementation to use `

glyphs.move_left(); g = page_contents->glyphs.get_data(); - result = !g->is_a_tag(); + result = g->is_a_tag(); if (g->is_fi()) nf = FALSE; else if (g->is_nf()) @@ -3849,27 +3849,27 @@ void html_printer::start_font (const char *fontname) current_paragraph->do_italic(); } else if (strcmp(fontname, "CR") == 0) { if ((! fill_on) && (is_courier_until_eol()) && - is_line_start(fill_on)) { + is_line_start(! fill_on)) { current_paragraph->do_pre(); } current_paragraph->do_tt(); } else if (strcmp(fontname, "CI") == 0) { if ((! fill_on) && (is_courier_until_eol()) && - is_line_start(fill_on)) { + is_line_start(! fill_on)) { current_paragraph->do_pre(); } current_paragraph->do_tt(); current_paragraph->do_italic(); } else if (strcmp(fontname, "CB") == 0) { if ((! fill_on) && (is_courier_until_eol()) && - is_line_start(fill_on)) { + is_line_start(! fill_on)) { current_paragraph->do_pre(); } current_paragraph->do_tt(); current_paragraph->do_bold(); } else if (strcmp(fontname, "CBI") == 0) { if ((! fill_on) && (is_courier_until_eol()) && - is_line_start(fill_on)) { + is_line_start(! fill_on)) { current_paragraph->do_pre(); } current_paragraph->do_tt(); -- 2.11.4.GIT