From 4c73c568c00126d6e38894c879785be2d86ba4ac Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 19 Sep 2017 11:53:06 +0200 Subject: Ajout d'un espace si celui-ci manque --- todo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'todo.cpp') 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; } -- cgit v1.2.3