The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit bf83ca75ef857f9e569915d985b0df66728a877c
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Nov 25 17:29:08 2012 +0100

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

diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 7432f5a..2b65245 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -442,16 +442,22 @@ void InsetText::latex(otexstream & os, OutputParams const 
& runparams) const
                        os << '{';
                } else if (il.latextype() == InsetLayout::ENVIRONMENT) {
                        if (il.isDisplay())
-                           os << breakln;
+                               os << breakln;
                        else
-                           os << safebreakln;
+                               os << safebreakln;
                        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())

-----------------------------------------------------------------------

Summary of changes:
 src/insets/InsetText.cpp |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to