aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}