Open ThomasWaldmann opened 11 years ago
Original comment by Yask Srivastava (Bitbucket: yask123, GitHub: yask123).
We can enable trim_blocks
and lstrip_blocks
to remove whitespace ? http://jinja.pocoo.org/docs/dev/templates/#whitespace-control
Or use HTML minifier such as htmlmin ? http://htmlmin.readthedocs.org/en/latest/
Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
cosmetic, thus lowering priority
Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
you can endlessly try to get it pretty using jinja's "-" (eat the whitespace) operator. but it often won't look as pretty as you'ld like even after doing that.
Original report by RogerHaase (Bitbucket: RogerHaase, GitHub: RogerHaase).
The generated HTML source has too much whitespace, too few line endings, and not enough whitespace in the right places.
Is there a place where a post processor could intercept output and format it properly?