P-wrapper: Generalize removal of useless p-wrappers
- This was being applied only to formatting tags. Plus, this was hardcoded to only look at a 1-tag run.
- This patch generalizes removal to a run of tags that have unnecessary p-wrapping.
Fun edge case: This removes p-wrapping around empty tags. Tidy removes those anyway and Parsoid uses CSS to suppress them. But, there is no clear argument for what is the right output. For now, code simplicity dictates we go with current behaviour.
- Added a new parser test.