- do not insert blank line for listings content.
* src/TextMetrics.cpp (setHeightOfRow):
- don't use parkip in Listings insets (bug 3624)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18399
a592a061-630c-0410-9148-
cb99ea01b6c8
{
odocstringstream ods;
ods << '\n';
- // only add blank line if we're not in an ERT inset
- if (par.ownerCode() != Inset::ERT_CODE)
+ // only add blank line if we're not in an ERT or Listings inset
+ if (par.ownerCode() != Inset::ERT_CODE
+ && par.ownerCode() != Inset::LISTINGS_CODE)
ods << '\n';
return ods.str();
}
if (bufparams.paragraph_separation
== BufferParams::PARSEP_SKIP
&& par.ownerCode() != Inset::ERT_CODE
+ && par.ownerCode() != Inset::LISTINGS_CODE
&& pit > 0
&& ((layout->isParagraph() && par.getDepth() == 0)
|| (pars[pit - 1].layout()->isParagraph()