remove trailing spaces
don't render line on top of element #1 if there are no ancestors or siblings