From 097bde861d8a217a5e5ab46253d242d3a52a8436 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Oct 2010 20:01:34 +0000 Subject: Fixed missing whitespace in text parsing. --- src/text.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/text.cpp') diff --git a/src/text.cpp b/src/text.cpp index a2fe0601..24544567 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -299,6 +299,12 @@ void text::createFromString(const string& in, const charset& ch) } else { + if (count) + { + ref w = getWordAt(getWordCount() - 1); + w->getBuffer() += ' '; + } + appendWord(vmime::create (chunk, ch)); prevIs8bit = true; @@ -314,6 +320,12 @@ void text::createFromString(const string& in, const charset& ch) } else { + if (count) + { + ref w = getWordAt(getWordCount() - 1); + w->getBuffer() += ' '; + } + appendWord(vmime::create (chunk, charset(charsets::US_ASCII))); -- cgit v1.2.3