From: Vincent van Ravesteijn Date: Sat, 6 Jun 2009 16:32:51 +0000 (+0000) Subject: Fix the output of a single dash in xhtml. X-Git-Tag: 2.0.0~6363 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=30a12853b8ff686b2f0e9da90a035e7e0237d680;p=features.git 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 --- 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); }