lib/combine_pdf/parser.rb in combine_pdf-0.2.13 vs lib/combine_pdf/parser.rb in combine_pdf-0.2.14

- old
+ new

@@ -313,13 +313,12 @@ ## Parse a comment ########################################## when str = @scanner.scan(/\%/) #is a comment, skip until new line loop do - break unless @scanner.scan(/[^\d\r\n]+/) - break if @scanner.check(/([\d]+[\s]+[\d]+[\s]+obj[\n\r\s]+\<\<)|([\n\r]+)/) - break if @scanner.eos? - @scanner.pos += 1 + # break unless @scanner.scan(/[^\d\r\n]+/) + break if @scanner.check(/([\d]+[\s]+[\d]+[\s]+obj[\n\r\s]+\<\<)|([\n\r]+)/) || @scanner.eos? # || @scanner.scan(/[^\d]+[\r\n]+/) || + @scanner.scan(/[^\d\r\n]+/) || @scanner.pos += 1 end # puts "AFTER COMMENT: #{@scanner.peek 8}" ########################################## ## Parse a Name ########################################## \ No newline at end of file