Account for whitespace before paragraph markers

I'd bet this spacing wasn't intended, but stripping it when finding the paragraph markers is the least invasive fix.