removes redundant paragraph element