From a283b8ad4948ebaed9cfe44ad4210df28deeeebf Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 1 Dec 2009 22:07:46 +0530 Subject: [PATCH] compile: kill preceding space when killing comments consider: repo = "some desc" # some comment (and note that the regex for recognising a description expects that dblquote to be the *last* character on the line) --- src/gl-compile-conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl-compile-conf b/src/gl-compile-conf index f79b713..bbb2eb6 100755 --- a/src/gl-compile-conf +++ b/src/gl-compile-conf @@ -165,7 +165,7 @@ sub parse_conf_file s/^ //; s/ $//; # kill comments - s/#.*//; + s/\s*#.*//; # and blank lines next unless /\S/;