The following is for the list of figures/tables.
<..html latex tocs..>+
\def\@dottedtocline#1#2#3#4#5{\hbox{\def\numberline##1{\e:listof
##1\f:listof}\c:listof#4\d:listof}\ignorespaces}
-_-_-
The added \par after \a:listof is to avoid problems in an environment that should be entered in vertical mode, at least for the case of \addvspace.
<..html latex tocs..>+
\def\@starttoc#1{%
\begingroup
\makeatletter \Configure{cite}{}{}{}{}%
\def\:temp{#1}\def\:tempa{toc}%
\a:listof\par
\@input{\jobname.\ifx \:temp\:tempa 4ct\else #1\fi}%
\b:listof
\if@filesw
\expandafter\expandafter\csname
newwrite\endcsname\csname tf@#1\endcsname
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
\fi
\global\@nobreakfalse
\endgroup}
-_-_-
Was ‘\pend:defI\@starttoc{\par}’