restored indentation; fully removed fixSpanTags()