Fixed handling of paragraph terminators