From 2b677bdc06c608f09ffa488147066aa186976682 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 23 Apr 2009 13:50:00 +0000 Subject: [PATCH] fix bug #5912 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29388 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/text.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 5ba3a2519f..5a5ded8181 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2245,10 +2245,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, else if (t.cs() == "=" && (flags & FLAG_TABBING)) handle_ert(os, t.asInput(), context); - else if (t.cs() == "H" || t.cs() == "c" || t.cs() == "^" - || t.cs() == "'" || t.cs() == "`" - || t.cs() == "~" || t.cs() == "." || t.cs() == "=") { - // we need the trim as the LyX parser chokes on such spaces + // accents (see Table 6 in Comprehensive LaTeX Symbol List) + else if (t.cs().size() == 1 + && contains("\"'.=^`bcdHkrtuv~", t.cs())) { context.check_layout(os); // try to see whether the string is in unicodesymbols docstring rem;