Discard portion of right subtree that is within the edited region
Remove whitespace between template closing tags