Function rewrap_keep_endlines (o2scl)¶
-
void o2scl::rewrap_keep_endlines(std::string str, std::vector<std::string> &sv, size_t ncol = 79, int verbose = 0, bool ignore_vt100 = true)¶
Rewrap a string into a single column, avoiding strings less than a particular number of characters.
This function is used to format the help output in o2scl::cli .
Note that this treats whitespace other than ‘ ‘ and ‘
’ as it does normal characters.