ansi2html.sh: further fixes to remove extraneous spaces at EOL