aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2007-11-20 21:45:54 +0000
committerVincent Richard <[email protected]>2007-11-20 21:45:54 +0000
commita87652e7b4f2854d9009847b10cdcdc7d131b217 (patch)
tree65693e9fed76dbe1a1009382382888af3c581391 /src/text.cpp
parentInitialize Winsock before using gethostbyname(). (diff)
downloadvmime-a87652e7b4f2854d9009847b10cdcdc7d131b217.tar.gz
vmime-a87652e7b4f2854d9009847b10cdcdc7d131b217.zip
Fixed incorrect white-space between words.
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text.cpp b/src/text.cpp
index 7386a698..c6b20c52 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -335,11 +335,12 @@ void text::encodeAndFold(utility::outputStream& os, const string::size_type maxL
const string::size_type firstLineOffset, string::size_type* lastLineLength, const int flags) const
{
string::size_type curLineLength = firstLineOffset;
+ word::generatorState state;
for (int wi = 0 ; wi < getWordCount() ; ++wi)
{
getWordAt(wi)->generate(os, maxLineLength, curLineLength,
- &curLineLength, flags, (wi == 0));
+ &curLineLength, flags, &state);
}
if (lastLineLength)