Simplify/fix logic for determining HTML part truncation.