diff options
| author | Pavel Janík <[email protected]> | 2014-12-06 21:26:52 +0100 |
|---|---|---|
| committer | Pavel Janík <[email protected]> | 2014-12-06 21:26:52 +0100 |
| commit | 83b81f6c8a88874d1e732525f43407f0576574c3 (patch) | |
| tree | b6952a4784e7221968e61e20a410d45a40c83ad4 /src/utilstrencodings.cpp | |
| parent | Merge pull request #5432 (diff) | |
| download | discoin-83b81f6c8a88874d1e732525f43407f0576574c3.tar.xz discoin-83b81f6c8a88874d1e732525f43407f0576574c3.zip | |
Format paragraphs properly - count the space between words.
Diffstat (limited to 'src/utilstrencodings.cpp')
| -rw-r--r-- | src/utilstrencodings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp index d0062d454..419a63c43 100644 --- a/src/utilstrencodings.cpp +++ b/src/utilstrencodings.cpp @@ -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(); |