martin-bts / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
0 stars 2 forks source link

Replace Django's spaceless filter #23

Closed martin-bts closed 5 years ago

martin-bts commented 5 years ago

In relation to https://github.com/martin-bts/askbot-devel/issues/13 we must replace the {% spaceless %} tags, of which Askbot makes heavy use.

Jinja2's {% filter trim %} seems to be a suitable repalcement in a lot of, BUT NOT ALL, situations. A lot of information can be found here.

For now I replaced spaceless with filter trim, to keep things going and to avoid depending on yet more not so alive code. Later, we will have to ensure that this does not have unwanted side effects.

martin-bts commented 5 years ago

The optical results look ok and we are not seeing any problems with using filter trim. Closing this issue, for now.