aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-10-12 20:01:34 +0000
committerVincent Richard <[email protected]>2010-10-12 20:01:34 +0000
commit097bde861d8a217a5e5ab46253d242d3a52a8436 (patch)
tree382b5a3c0543fd6989be83818c3d63977af43c70 /src/text.cpp
parentBetter RFC-2047 encoding. (diff)
downloadvmime-097bde861d8a217a5e5ab46253d242d3a52a8436.tar.gz
vmime-097bde861d8a217a5e5ab46253d242d3a52a8436.zip
Fixed missing whitespace in text parsing.
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp12
1 files changed, 12 insertions, 0 deletions
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 <word> w = getWordAt(getWordCount() - 1);
+ w->getBuffer() += ' ';
+ }
+
appendWord(vmime::create <word>(chunk, ch));
prevIs8bit = true;
@@ -314,6 +320,12 @@ void text::createFromString(const string& in, const charset& ch)
}
else
{
+ if (count)
+ {
+ ref <word> w = getWordAt(getWordCount() - 1);
+ w->getBuffer() += ' ';
+ }
+
appendWord(vmime::create <word>
(chunk, charset(charsets::US_ASCII)));