Painter now reads and displays <p> tags correctly.