3 ms·
That ticket was created by me, and yes, treating whitespace like that would obviously break plain text templates and anything else where whitespace is significa
by eloff 11y ago
That ticket was created by me, and yes, treating whitespace like that would obviously break plain text templates and anything else where whitespace is significant. Remember that Go templates are for more than just html. What about generating CSV files for example? Plaintext emails? I use it for generating Go code, so the whitespace is sometimes significant (to terminate a line of code) but moreover careful control of whitespace is necessary to get readable code.