]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/text.cpp
tex2lyx/text.cpp: fix bug #8223
[features.git] / src / tex2lyx / text.cpp
index c28e4366e6f71461d18889b572ac253c42b79775..beb37bd914fc2d9c071213c923961b0a527826c5 100644 (file)
@@ -3954,8 +3954,17 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        } else {
                                string special = p.getFullOpt();
                                special += p.getOpt();
-                               parse_outer_box(p, os, FLAG_ITEM, outer,
-                                               context, t.cs(), special);
+                               // LyX does not yet support \framebox without any option
+                               if (!special.empty())
+                                       parse_outer_box(p, os, FLAG_ITEM, outer,
+                                                       context, t.cs(), special);
+                               else {
+                                       eat_whitespace(p, os, context, false);
+                                       handle_ert(os, "\\framebox{", context);
+                                       eat_whitespace(p, os, context, false);
+                                       parse_text(p, os, FLAG_ITEM, outer, context);
+                                       handle_ert(os, "}", context);
+                               }
                        }
                }