mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
tex2lyx/text.cpp: fix bug #8223
LyX does not yet support \framebox without an option we therefore cannot use our parse_outer_box routine (this is only for supported boxes)
This commit is contained in:
parent
6a7a8d2e37
commit
d3bcdb24cc
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user