renderers-html: rework indentation logic