mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-24 05:44:30 +00:00
Format paragraphs properly - count the space between words.
This commit is contained in:
parent
4383319e4e
commit
83b81f6c8a
@ -459,7 +459,7 @@ std::string FormatParagraph(const std::string in, size_t width, size_t indent)
|
|||||||
}
|
}
|
||||||
// Append word
|
// Append word
|
||||||
out << in.substr(ptr, endword - ptr);
|
out << in.substr(ptr, endword - ptr);
|
||||||
col += endword - ptr;
|
col += endword - ptr + 1;
|
||||||
ptr = endword;
|
ptr = endword;
|
||||||
}
|
}
|
||||||
return out.str();
|
return out.str();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user