InsetLayout: Output [latexparam] on same line as \begin{inset}.

This commit is contained in:
Julien Rioux 2013-01-03 16:41:58 +01:00
parent 62b1319752
commit 60ec70a6f5
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -98,6 +98,8 @@ What's new
- Use document language when exporting citations to LyXHTML (bug 7732). - Use document language when exporting citations to LyXHTML (bug 7732).
- Fix InsetLayout's LatexParam output: \begin{inset}[latexparam].
* USER INTERFACE * USER INTERFACE