diff gui/util/string.c @ 33080:60b2e408bd78

Allow number sign as comment character. This is practice in some skins and should not lead to an error message now that unknown items are reported. Update documentation.
author ib
date Thu, 31 Mar 2011 10:13:47 +0000
parents 334e19411421
children 71c29e8ec68f
line wrap: on
line diff
--- a/gui/util/string.c	Thu Mar 31 09:38:03 2011 +0000
+++ b/gui/util/string.c	Thu Mar 31 10:13:47 2011 +0000
@@ -75,6 +75,9 @@
 
     p = in;
 
+    if (*p == '#')
+        *p = 0;
+
     while (*p) {
         if (*p == '"')
             nap = !nap;