Sorted lines on page by y-position. Joined up broken lines.