lib/combine_pdf/parser.rb in combine_pdf-1.0.0 vs lib/combine_pdf/parser.rb in combine_pdf-1.0.1

- old
+ new

@@ -305,10 +305,10 @@ elsif @scanner.scan(/\]/) || @scanner.scan(/>>/) return out ########################################## ## parse a Stream ########################################## - elsif @scanner.scan(/stream[\r\n]/) + elsif @scanner.scan(/stream[ \t]*[\r\n]/) @scanner.pos += 1 if @scanner.peek(1) == "\n".freeze && @scanner.matched[-1] != "\n".freeze # 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/)