CloudyKit / jet

Jet template engine
Apache License 2.0
1.24k stars 103 forks source link

Trim Whitespace #173

Closed tooolbox closed 4 years ago

tooolbox commented 4 years ago

Closes #172

...That was more straightforward than I thought 😉

Depending on certain factors, I might also like to backport this to v3 or v4, but this is a start.

sauerbraten commented 4 years ago

Very cool, thanks for taking the time! Do you want to add a "delimiters" section to the syntax reference describing this feature?

tooolbox commented 4 years ago

Very cool, thanks for taking the time!

Yeah, my curiosity was piqued and it was halfway done before I realized what I was doing 😉

Do you want to add a "delimiters" section to the syntax reference describing this feature?

Sure, done. Feel free to tweak what I wrote if the urge comes over you.

...As a note, do you prefer no syntax highlighting? Your docs may be an improvement over the wiki but I liked the color.

sauerbraten commented 4 years ago

The documentation is great, thanks!

As a note, do you prefer no syntax highlighting?

I guess I started to use intend markdown syntax for my code blocks because it was easier to read in the editor. For these short snippets, I guess I didn't miss syntax highlighting, but I'm certainly not against it. If you want to bring it back in a PR, I'll make sure we always use it in the future! 👍