The quick solution is to output a % sign before \n. The better one
would be doing as in mathed, but it is not so straightforward.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37320
a592a061-630c-0410-9148-
cb99ea01b6c8
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;
}
if (il.latextype() == InsetLayout::COMMAND) {
os << "}";
} else if (il.latextype() == InsetLayout::ENVIRONMENT) {
- os << "\n\\end{" << from_utf8(il.latexname()) << "}\n";
+ os << "%\n\\end{" << from_utf8(il.latexname()) << "}\n";
rows += 2;
}
}