fix inverse/light style in html output($type instead of $ttype)