X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Fcontext.C;h=12404d9d12711564dbd08203c6a5500425e4223b;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=800249fed439be8334ced75e4bce89cf5b7d1219;hpb=24319e60b9f2b295a5ebc7ebb2eeb06b1d1c3fd4;p=lyx.git diff --git a/src/tex2lyx/context.C b/src/tex2lyx/context.C index 800249fed4..12404d9d12 100644 --- a/src/tex2lyx/context.C +++ b/src/tex2lyx/context.C @@ -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