Fix multiline spacing so it takes into account extra sub/superscripts