diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index eecd4e835..42b7d8026 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -321,8 +321,10 @@ sub load { my $class = shift; my ($file) = @_; + local $/ = "\n"; open my $fh, '<', $file; while (<$fh>) { + s/\R+$//; next if /^\s+/; next if /^$/; next if /^\s*#/;