]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/context.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / tex2lyx / context.C
index 800249fed439be8334ced75e4bce89cf5b7d1219..12404d9d12711564dbd08203c6a5500425e4223b 100644 (file)
@@ -15,6 +15,9 @@
 #include "support/lstrings.h"
 #include "context.h"
 
+
+namespace lyx {
+
 using std::ostream;
 using std::endl;
 using std::string;
@@ -134,12 +137,11 @@ void Context::check_layout(ostream & os)
                                             font, normalfont);
                                deeper_paragraph = true;
                        }
-                       need_layout = false;
                } else {
                        // No list-like environment
                        begin_layout(os, layout, font, normalfont);
-                       need_layout=false;
                }
+               need_layout = false;
                need_end_layout = true;
                if (!extra_stuff.empty()) {
                        os << extra_stuff;
@@ -234,3 +236,6 @@ void Context::dump(ostream & os, string const & desc) const
           << font.size << ' ' << font.family << ' ' << font.series << ' '
           << font.shape << ']' << endl;
 }
+
+
+} // namespace lyx