X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c6bc181610ac4dd26cfd615075bcc8686dc219cf..35cf7c7029b4aa69eb9d02c7533d1a15aafb118b:/modules/override/YAML/Loader.pm diff --git a/modules/override/YAML/Loader.pm b/modules/override/YAML/Loader.pm index 672f4128c..2cef54e8e 100644 --- a/modules/override/YAML/Loader.pm +++ b/modules/override/YAML/Loader.pm @@ -34,7 +34,8 @@ sub _parse { $self->line(0); $self->die('YAML_PARSE_ERR_BAD_CHARS') if $self->stream =~ /$ESCAPE_CHAR/; - $self->die('YAML_PARSE_ERR_NO_FINAL_NEWLINE') +# $self->die('YAML_PARSE_ERR_NO_FINAL_NEWLINE') + $self->{stream} .= "\n" if length($self->stream) and $self->{stream} !~ s/(.)\n\Z/$1/s; $self->lines([split /\x0a/, $self->stream, -1]);