when textNodes are present, no indentation should be added to preserve the original whitespace