mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
Fix logic error that led to bug #8777. I have no idea what I was
previously thinking.
This commit is contained in:
parent
0cf30671d3
commit
d938284fb3
@ -316,7 +316,9 @@ docstring InsetCaption::xhtml(XHTMLStream & xs, OutputParams const & rp) const
|
|||||||
string const our_class = "float-caption-" + type_;
|
string const our_class = "float-caption-" + type_;
|
||||||
size_t const loc = attr.find("class='");
|
size_t const loc = attr.find("class='");
|
||||||
if (loc != string::npos)
|
if (loc != string::npos)
|
||||||
attr.insert(loc + 1, our_class);
|
attr.insert(loc + 7, our_class+ " ");
|
||||||
|
else
|
||||||
|
attr = attr + " class='" + our_class + "'";
|
||||||
}
|
}
|
||||||
xs << html::StartTag(tag, attr);
|
xs << html::StartTag(tag, attr);
|
||||||
docstring def = getCaptionAsHTML(xs, rp);
|
docstring def = getCaptionAsHTML(xs, rp);
|
||||||
|
Loading…
Reference in New Issue
Block a user