Skip to content

Commit 83b81f6

Browse files
committed
Format paragraphs properly - count the space between words.
1 parent 4383319 commit 83b81f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilstrencodings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ std::string FormatParagraph(const std::string in, size_t width, size_t indent)
459459
}
460460
// Append word
461461
out << in.substr(ptr, endword - ptr);
462-
col += endword - ptr;
462+
col += endword - ptr + 1;
463463
ptr = endword;
464464
}
465465
return out.str();

0 commit comments

Comments
 (0)