From 481acc66e7ba9296e8e873941a1bdc061c992456 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Wed, 15 Feb 2012 20:56:40 +0000 Subject: [PATCH] Forgot that in r40694: There is no {} needed after \nobreakdash- git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40758 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 5cfce9bec5..fa274e3f45 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1267,7 +1267,8 @@ void Paragraph::Private::latexSpecialChar(otexstream & os, && prefixIs(latex, from_ascii("\\" + script))) column += writeScriptChars(os, latex, running_change, encoding, i) - 1; - else if (latex.length() > 1 && latex[latex.length() - 1] != '}') { + else if (latex.length() > 1 && latex[latex.length() - 1] != '}' && + latex[latex.length() - 1] != '-') { // Prevent eating of a following // space or command corruption by // following characters -- 2.39.2