lib/combine_pdf/parser.rb in combine_pdf-0.2.30 vs lib/combine_pdf/parser.rb in combine_pdf-0.2.31

- old
+ new

@@ -198,10 +198,10 @@ # the following was dicarded because some PDF files didn't have an EOL marker as required # str = @scanner.scan_until(/(\r\n|\r|\n)endstream/) # instead, a non-strict RegExp is used: str = @scanner.scan_until(/endstream/) # raise error if the stream doesn't end. - raise "Parsing Error: PDF file error - a stream object wasn't properly colsed using 'endstream'!" unless str + raise "Parsing Error: PDF file error - a stream object wasn't properly closed using 'endstream'!" unless str # need to remove end of stream if out.last.is_a? Hash # out.last[:raw_stream_content] = str[0...-10] #cuts only one EON char (\n or \r) out.last[:raw_stream_content] = unify_string str.sub(/(\r\n|\n|\r)?endstream\z/, '').force_encoding(Encoding::ASCII_8BIT) else