Author: rgheck
Date: Tue Jun 21 17:35:04 2011
New Revision: 39183
URL: http://www.lyx.org/trac/changeset/39183

Log:
Fix bug #7640: Importing underlined text fails in LyX 2.0

Just recognize \uline as a synonym or \underbar.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/tex2lyx/text.cpp

Modified: lyx-devel/branches/BRANCH_2_0_X/src/tex2lyx/text.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/tex2lyx/text.cpp        Tue Jun 21 
15:24:26 2011        (r39182)
+++ lyx-devel/branches/BRANCH_2_0_X/src/tex2lyx/text.cpp        Tue Jun 21 
17:35:04 2011        (r39183)
@@ -2360,7 +2360,7 @@
                                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.

Reply via email to