Remove both open and close formatting tags when removing tabs
In the last typescript xslt (reduce), tabs are removed.
When there's formatting wrapping a single tab span, the opening formatting tag is removed with the tab, but not the closing one. This happens at least with <em>
tags, but I wouldn't be surprised if it happens with other tabs.
Here's an example:
Output of editoria basic step:
<p style="font-family: Times New Roman; margin-bottom: 12pt">
<em><span class="tab"><!-- tab --></span></em>Hermeneutical Innovations in Advaita Vedānta Intellectual History.” Unpublished
</p>
Then after editoria reduce:
<p>
<em/>Hermeneutical Innovations in Advaita Vedānta Intellectual History.” Unpublished
</p>
This mismatched closing tag doesn't stop the page from showing properly in the browser, but it does prevent it from loading at all in Wax.