Paragraph detection