Thread:Project:Support desk/Unexpected breaks in HTML before closing tags/reply (5)

I have the same issue as Huwmanbeing: HTML end tags are not appearing as one would expect if setting out to write properly formatted code. This isn't a problem for browsers or CSS but it's causing me grief because of the way I'm using our wiki (it's kind of involved, but basically, I'm creating content in the wiki, then using curl to point to wiki URLs with the ?action=render flag. The wiki content has some embedded code that will be parsed after the export process by a perl interpreter (Mason). The perl interpreter DOES rely on on certain whitespace elements (e.g., the perl lines MUST begin with "%" located in column 1 of the line.) The Wikimedia output gets overzealous about putting additional tags around some elements, adding spurious tags around others. And there seems to be no way to suppress the conversion of <, >, " characters into HTML entities (e.g, <%args> $thischapter => ""

gets converted to

&lt;%args&gt; $thischapter =&gt; &quot;&quot; )

This forces me to jump through some post processing hoops I'd love to avoid. Any help you give on this would be most appreciated.