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;