minted environment is a wrapper for Verbatim from fancyrb, which does have a
tex4ht configuration.
The fifth parameter of "\Configure{fancyvrb}" is set to two spaces. You can
change it of course.
The config file:
\Preamble{}
\catcode`\:=11\relax
\Configure{fancyvrb}
{\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
\gHAssign\fancyvrb:cnt0
\HCode{<div class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
{\EndP\HCode{</div>}}
{\gHAdvance\fancyvrb:cnt by 1
\ifnum \fancyvrb:cnt>1
\HCode{<br class="fancyvrb" />}\fi} {}
%{\ \ } % the culprit - explicit two spaces
{}
{}
\catcode`\:=12\relax
\begin{document}
\EndPreamble
regards,
-- deimi
On 06/01/2016 10:53 AM, Michal Hoftich wrote:
If you get rid of the spaces after the }'s in that temp file, do the
"extra" spaces in the tex4ht output go away? -k
The spaces at beginning of the line remains. We can get somewhat
interesting result with a following .cfg file:
\Preamble{xhtml}
\ConfigureEnv{Verbatim}{\NoFonts}{\EndNoFonts}{}{}
\Css{div.fancyvrb{font-family:monospace;}}
\begin{document}
\EndPreamble
and without conversion to Unicode:
<a id="x1-7r1"></a>  clear all; close all;<br
class="fancyvrb" />
Michal