From: Richard Heck Date: Tue, 21 Jun 2011 15:35:04 +0000 (+0000) Subject: Fix bug #7640: Importing underlined text fails in LyX 2.0 X-Git-Tag: 2.0.1~139 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=502aebe800b1686c2c4c23824182635e67c773ff;p=features.git Fix bug #7640: Importing underlined text fails in LyX 2.0 Just recognize \uline as a synonym or \underbar. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39183 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 4471bffa2e..346922fc2c 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2360,7 +2360,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, handle_ert(os, t.asInput() + "{" + color + "}", context); } - else if (t.cs() == "underbar") { + else if (t.cs() == "underbar" || t.cs() == "uline") { // Do NOT handle \underline. // \underbar cuts through y, g, q, p etc., // \underline does not.