Fix bug where truncation calculation was off when submitting truncationHTML.