tracks what tag it's in and uses that to determine whether to add whitespace