Self-explanatory once you read the rest of it; the current .push_str() and format!() system isn't the best and should be replaced by a write!() macro.
The reason why the function itself returns String is to simplify the logistics of getting it's length compared to writing directly to the buffer, due to how the tab_to function works to format help (currently, see #2).
https://github.com/Owez/clonk/blob/15e8676fe218f63a4f6ca36f4f33300161f9c2d3/src/lib.rs#L293
Self-explanatory once you read the rest of it; the current
.push_str()
andformat!()
system isn't the best and should be replaced by awrite!()
macro.The reason why the function itself returns String is to simplify the logistics of getting it's length compared to writing directly to the buffer, due to how the
tab_to
function works to format help (currently, see #2).