correct text/code indent tracking