Line truncation terminated at paragraph boundaries

A small patch to truncate lines only up to their paragraph range. This fixes a bug we had where a truncated line would cause successive paragraphs to be pulled up into the truncated line, if there was a line break before the end of the line truncation.