\PYG{n}{clear} \PYG{n}{all}\PYG{p}{;} \PYG{n}{close} \PYG{n}{all}\PYG{p}{;} 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