Prevent leading whitespace from turning into text nodes

Fixes an old annoyance. Whether this is reasonable or even safe, I'm not entirely sure, but it shouldn't cause any unexpected problems.