From a87652e7b4f2854d9009847b10cdcdc7d131b217 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 20 Nov 2007 21:45:54 +0000 Subject: Fixed incorrect white-space between words. --- src/text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/text.cpp') 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) -- cgit v1.2.3