Reading certain paragraphs out of text file in Python?
<p>I am trying to parse certain paragraphs out of a text file.  The paragraph I am trying to parse is labeled as so:   </p>

<p>ABST</p>

<p>PAL    An abrasion-resistant laminate is prepared by providing an ultra thin
      coating of mineral particles and micro crystalline cellulose on the
      surface of conventional printed paper, followed by impregnating the paper
      with a conventional laminating resin, and then using the print paper so
      obtained in a laminating process without the necessity of using an overlay
      sheet.</p>

<p>PARN</p>

<p>So far all I have gotten is:</p>

<pre><code>with open('file.txt', 'r+') as f:
   for line in f:
        if line.startswith("ABST"):
            print f.next()
</code></pre>

<p>This is only leaving me with the first line of the paragraph. What I would like to is something along the lines of:</p>

<pre><code>with open('file.txt', 'r+') as f:
   for line in f:
        if line.startswith("ABST"):
            *print lines until next header*
</code></pre>

<p>I realize this is not too complicated but I have been stuck in a rut so any suggestion will help.</p>
