mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Minor cleanup.
This commit is contained in:
parent
b4e2a65d50
commit
8e23cfdbdc
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user