I see where that intention comes from. Iβm usually caring about that as well. Otherwise every space/newline could be stripped to save even more traffic.
You can probably find some HTML beautifier that you could run on the rendered stuff if you search for it. IMO that would be unnecessary overhead for something that is not visible to users.