Change parsing to look for blank line delineating captions, rather than looking for the integer beginning the next line.

This fixes an issue where the text of the caption is composed of a single integer, which throws off the old way of parsing.