diff options
author | Vincent Richard <[email protected]> | 2007-11-20 21:45:54 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2007-11-20 21:45:54 +0000 |
commit | a87652e7b4f2854d9009847b10cdcdc7d131b217 (patch) | |
tree | 65693e9fed76dbe1a1009382382888af3c581391 /src/text.cpp | |
parent | Initialize Winsock before using gethostbyname(). (diff) | |
download | vmime-a87652e7b4f2854d9009847b10cdcdc7d131b217.tar.gz vmime-a87652e7b4f2854d9009847b10cdcdc7d131b217.zip |
Fixed incorrect white-space between words.
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 3 |
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) |