Respect 'literal' setting when calculating longest bibitem.

(cherry picked from commit 224e56c935)
This commit is contained in:
Richard Heck 2018-02-22 15:40:05 -05:00
parent 04e8526460
commit 797babd462
2 changed files with 6 additions and 0 deletions

View File

@ -249,6 +249,7 @@ docstring bibitemWidest(Buffer const & buffer, OutputParams const & runparams)
ParagraphList::const_iterator it = buffer.paragraphs().begin();
ParagraphList::const_iterator end = buffer.paragraphs().end();
bool is_literal = false;
for (; it != end; ++it) {
if (it->insetList().empty())
continue;
@ -274,11 +275,14 @@ docstring bibitemWidest(Buffer const & buffer, OutputParams const & runparams)
if (wx > w) {
w = wx;
lbl = label;
is_literal = (bitem->getParam("literal") == "true");
}
}
if (!lbl.empty()) {
InsetCommandParams p(BIBITEM_CODE);
if (is_literal)
p["literal"] = from_ascii("true");
return p.prepareCommand(runparams, lbl, ParamInfo::HANDLING_LATEXIFY);
}

View File

@ -55,6 +55,8 @@ What's new
- Fix language settings annd line spacing in InPreamble-titles
(bug 9332, 1049).
- Respect 'literal' setting when calculating longest bibitem (bug 10817).
* LYX2LYX