Fix bug #7254 (LyX may insert a blank line when ending an environment)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37327 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-01-26 10:54:28 +00:00
parent 612b99b7e7
commit 480a40def2
3 changed files with 6 additions and 3 deletions

View File

@ -831,7 +831,7 @@ int InsetCollapsable::latex(odocstream & os,
if (layout_->latextype() == InsetLayout::COMMAND) {
os << "}";
} else if (layout_->latextype() == InsetLayout::ENVIRONMENT) {
os << "\n\\end{" << from_utf8(layout_->latexname()) << "}\n";
os << "%\n\\end{" << from_utf8(layout_->latexname()) << "}\n";
i += 4;
}
}

View File

@ -355,8 +355,8 @@ int InsetFloat::latex(odocstream & os, OutputParams const & runparams_in) const
int const i = InsetText::latex(os, runparams);
// The \n is used to force \end{<floatname>} to appear in a new line.
// In this case, we do not case if the current output line is empty.
os << "\n\\end{" << from_ascii(tmptype) << "}\n";
// Also in this case, we care that the current output line is not empty.
os << "%\n\\end{" << from_ascii(tmptype) << "}\n";
return i + 4;
}

View File

@ -66,6 +66,9 @@ What's new
- Do not output PDF settings if these are disabled in the document
settings (bug 7052).
- Avoid inserting a blank line before the end of an environment when
exporting to LaTeX a custom inset (bug 7254).
- Correctly check for RTF and DOC viewers.
- KOMA classes: Support the optional argument of Addpart, Addchap and