OutputHandling: fixed paragraphs being incorrectly closed before every tag including those that don't break paragraphs