From: Richard Heck Date: Thu, 22 Feb 2018 20:40:05 +0000 (-0500) Subject: Fix bug #10817. X-Git-Tag: 2.3.1~133^2~68 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=797babd46299ac9e9d68a34d3621f83dbc5bc16e;p=features.git Fix bug #10817. Respect 'literal' setting when calculating longest bibitem. (cherry picked from commit 224e56c935074729b39aa59994d3e42031f6db17) --- diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index 08e8c76665..f9b244c460 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -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); } diff --git a/status.23x b/status.23x index d72f1bb6f1..19a25ef6ae 100644 --- a/status.23x +++ b/status.23x @@ -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