moinwiki / moin

MoinMoin Wiki Development (2.0+), unstable, for production please use 1.9.x.
https://moinmo.in/
Other
308 stars 92 forks source link

HTML source output is ugly #297

Open ThomasWaldmann opened 11 years ago

ThomasWaldmann commented 11 years ago

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 commented 9 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/

ThomasWaldmann commented 11 years ago

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


cosmetic, thus lowering priority

ThomasWaldmann commented 11 years ago

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.