From ea254588f7573058b9685ed494e0e5ab07476c27 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 4 Dec 2011 20:41:17 +0100 Subject: [PATCH] More tolerance for config files --- lib/Slic3r/Config.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index b84b2443c..8ca4c9889 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -296,6 +296,8 @@ sub load { open my $fh, '<', $file; while (<$fh>) { + next if /^\s+/; + next if /^$/; next if /^\s*#/; /^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n"; my $key = $1;