Minor cleanup.

This commit is contained in:
Richard Heck 2013-05-02 21:23:11 -04:00
parent b4e2a65d50
commit 8e23cfdbdc

View File

@ -2879,7 +2879,7 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
if (isDeleted(i)) if (isDeleted(i))
continue; continue;
Font font = getFont(buf.masterBuffer()->params(), i, outerfont); Font const font = getFont(buf.masterBuffer()->params(), i, outerfont);
bool const at_start = (i == initial); bool const at_start = (i == initial);
// emphasis // emphasis
@ -2921,7 +2921,7 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
if (font.fontInfo().series() == BOLD_SERIES) { if (font.fontInfo().series() == BOLD_SERIES) {
xs << html::StartTag("b"); xs << html::StartTag("b");
bold_flag = true; bold_flag = true;
} else if (bold_flag && i != initial) { } else if (bold_flag && !at_start) {
xs << html::EndTag("b"); xs << html::EndTag("b");
bold_flag = false; bold_flag = false;
} }