Browse Source

Format paragraphs properly - count the space between words.

0.10
Pavel Janík 10 years ago
parent
commit
83b81f6c8a
  1. 2
      src/utilstrencodings.cpp

2
src/utilstrencodings.cpp

@ -459,7 +459,7 @@ std::string FormatParagraph(const std::string in, size_t width, size_t indent) @@ -459,7 +459,7 @@ std::string FormatParagraph(const std::string in, size_t width, size_t indent)
}
// Append word
out << in.substr(ptr, endword - ptr);
col += endword - ptr;
col += endword - ptr + 1;
ptr = endword;
}
return out.str();

Loading…
Cancel
Save