]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Better TOC output for XHTML, per Rob and Pavel.
[lyx.git] / src / insets / InsetText.cpp
index e9105080a6cbbf567163978550597ce5c0044f45..f0a6c81832ffcc4ee088084fa10810b7ff3a6cb0 100644 (file)
@@ -391,6 +391,9 @@ void InsetText::latex(otexstream & os, OutputParams const & runparams) const
                            os << breakln;
                        else
                            os << safebreakln;
+                       if (runparams.lastid != -1)
+                               os.texrow().start(runparams.lastid,
+                                                 runparams.lastpos);
                        os << "\\begin{" << from_utf8(il.latexname()) << "}\n";
                        if (!il.latexparam().empty())
                                os << from_utf8(il.latexparam());