Further fixes for InsetLayout argument (for environments and empty latex names)

This commit is contained in:
Juergen Spitzmueller 2012-11-25 17:29:08 +01:00
parent 07a01f40f9
commit bf83ca75ef

View File

@ -448,10 +448,16 @@ void InsetText::latex(otexstream & os, OutputParams const & runparams) const
if (runparams.lastid != -1)
os.texrow().start(runparams.lastid,
runparams.lastpos);
os << "\\begin{" << from_utf8(il.latexname()) << "}\n";
os << "\\begin{" << from_utf8(il.latexname()) << "}";
getOptArg(os, runparams);
if (!il.latexparam().empty())
os << from_utf8(il.latexparam());
os << '\n';
}
} else {
getOptArg(os, runparams);
if (!il.latexparam().empty())
os << from_utf8(il.latexparam());
}
OutputParams rp = runparams;
if (il.isPassThru())