1👍
The white space is not the problem, and it is not causing the spaces in your rendered tree. The reason for that appears to be that you are nesting ul
elements directly inside ul
s, which isn’t strictly speaking valid: they should be inside li
s.
Source:stackexchange.com