From 30a12853b8ff686b2f0e9da90a035e7e0237d680 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 6 Jun 2009 16:32:51 +0000 Subject: [PATCH] Fix the output of a single dash in xhtml. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30004 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 92706f0c46..1333553040 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2402,19 +2402,21 @@ void Paragraph::simpleLyXHTMLOnePar(Buffer const & buf, if (style.pass_thru) os.put(c); else if (c == '-') { + docstring str; int j = i + 1; if (j < size() && d->text_[j] == '-') { j += 1; if (j < size() && d->text_[j] == '-') { - os << from_ascii("—"); + str += from_ascii("—"); i += 2; } else { - os << from_ascii("–"); + str += from_ascii("–"); i += 1; } } else - os << c; + str += c; + os << str; } else os << html::escapeChar(c); }