diff options
author | ache <ache@ache.one> | 2017-09-19 11:53:06 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2017-09-19 11:53:06 +0200 |
commit | 4c73c568c00126d6e38894c879785be2d86ba4ac (patch) | |
tree | 598da5fa990d1dd3ffe4530c2b75d8444a1623cf | |
parent | Color support only if output is term (diff) |
Ajout d'un espace si celui-ci manque
-rwxr-xr-x | todo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -67,8 +67,11 @@ todo todoFromCmd(string line) { streamLine.clear(); getline(streamLine, tmp.str); tmp.str = string(" ") + tmp.str; - } else + } else { getline(streamLine, tmp.str); + if( tmp.str[0] != ' ' ) + tmp.str = " " + tmp.str; + } return tmp; } |