moin icon indicating copy to clipboard operation
moin copied to clipboard

HTML source output is ugly

Open ThomasWaldmann opened this issue 13 years ago • 3 comments

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?

ThomasWaldmann avatar Nov 27 '12 16:11 ThomasWaldmann

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/

ThomasWaldmann avatar Jul 12 '15 18:07 ThomasWaldmann

Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).


cosmetic, thus lowering priority

ThomasWaldmann avatar Dec 14 '12 22:12 ThomasWaldmann

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.

ThomasWaldmann avatar Nov 30 '12 20:11 ThomasWaldmann