From 79a8c0d2a9582c6623d6d0a739920ef0a3eca005 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 25 Nov 2012 02:21:13 +0100 Subject: [PATCH] fix bug #8223 also for branch --- src/tex2lyx/text.cpp | 12 ++++++++++-- status.20x | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 0089a0ea3d..9ca67c0f55 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3727,8 +3727,16 @@ 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); + parse_text(p, os, FLAG_ITEM, outer, context); + handle_ert(os, "}", context); + } } } diff --git a/status.20x b/status.20x index fca87b0a74..bf4b797c64 100644 --- a/status.20x +++ b/status.20x @@ -87,6 +87,7 @@ What's new * TEX2LYX +- correct import of the command \framebox (bug 8223). * ADVANCED FIND AND REPLACE -- 2.39.5