Don't remove whitespace from lines in config file.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 3 Oct 2013 18:11:57 +0000 (20:11 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 3 Oct 2013 18:11:57 +0000 (20:11 +0200)
g_strstrip() removes leading and trailing whitespace from the lines in the
config file. This behaviour is not desiderable for lines that use the input
command.

Thanks Leonardo Taccari for this patch.

src/main.c

index 24d1863..e610f3d 100644 (file)
@@ -792,7 +792,6 @@ static void read_config(void)
         int length = g_strv_length(lines) - 1;
         for (int i = 0; i < length; i++) {
             line = lines[i];
-            g_strstrip(line);
 
             if (!g_ascii_isalpha(line[0])) {
                 continue;