Indeed your modified example avoids the error in the xhtml,mathml case.
Thanks for having looked into it.
When running through a normal (html) run, the image is still shown
as subscript, but that is in fact completely unrelated to mathtools since
$c^{2} \left(a^{2}+b\right)$ will render exactly
URL:
http://puszcza.gnu.org.ua/bugs/?260
Summary: Hnewline inserts a spurious space character
Project: tex4ht
Submitted by: youngfrog
Submitted on: ven. 24 juil. 2015 14:38:08 EEST
Category: None
Priority:
Follow-up Comment #1, bug #260 (project tex4ht):
Oops, I forgot the headers of the diff. It's a patch for wripro.tex (found by
grepping). Here's the full thing again
--- a/lit/wripro.tex
+++ b/lit/wripro.tex
@@ -140,7 +140,7 @@ against redefinitions of the \''\special', as is the case
in
URL:
http://puszcza.gnu.org.ua/bugs/?259
Summary: mathtools and starred version of a
DeclarePaireDelimiter macro
Project: tex4ht
Submitted by: youngfrog
Submitted on: Mon 20 Jul 2015 12:46:33 PM EEST
Category: None