aboutsummaryrefslogtreecommitdiff
path: root/todo.cpp
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-09-19 11:53:06 +0200
committerache <ache@ache.one>2017-09-19 11:53:06 +0200
commit4c73c568c00126d6e38894c879785be2d86ba4ac (patch)
tree598da5fa990d1dd3ffe4530c2b75d8444a1623cf /todo.cpp
parentColor support only if output is term (diff)
Ajout d'un espace si celui-ci manque
Diffstat (limited to 'todo.cpp')
-rwxr-xr-xtodo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/todo.cpp b/todo.cpp
index ba9c5ec..56caea3 100755
--- a/todo.cpp
+++ b/todo.cpp
@@ -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;
}