site: fix up line resizing, don't trim whitespace if the element is active