<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>specs/data/content_stream_with_length_as_ref_and_windows_breaks2.pdf</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -147,4 +147,16 @@ context &quot;PDF::Reader&quot; do
     receiver.content.size.should eql(1)
     receiver.content[0].should eql(&quot;HelloWorld&quot;)
   end
+
+  # PDF::Reader::XRef#object was saving an incorrect position when seeking. We
+  # were saving the current pos of the underlying IO stream, then seeking back
+  # to it. This was fine, except when there was still content in the buffer.
+  specify &quot;should correctly process a PDF with a stream that has its length specified as an indirect reference and uses windows line breaks&quot; do
+    receiver = PageTextReceiver.new
+    PDF::Reader.file(File.dirname(__FILE__) + &quot;/data/content_stream_with_length_as_ref_and_windows_breaks2.pdf&quot;, receiver)
+
+    # confirm the text appears on the correct pages
+    receiver.content.size.should eql(1)
+    receiver.content[0].should eql(&quot;HelloWorld&quot;)
+  end
 end</diff>
      <filename>specs/meta_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>090638048a38896b2b501421837ebbb3be9d9b03</id>
    </parent>
  </parents>
  <author>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </author>
  <url>http://github.com/yob/pdf-reader/commit/079653654d72519d796ba9c1de16d0f87682e0ed</url>
  <id>079653654d72519d796ba9c1de16d0f87682e0ed</id>
  <committed-date>2009-04-24T04:11:26-07:00</committed-date>
  <authored-date>2009-04-24T04:11:26-07:00</authored-date>
  <message>add a failing spec. Fix still to come</message>
  <tree>db4383c776bb91e200a68353a0e332ce8bdda8b5</tree>
  <committer>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </committer>
</commit>
