maccesch / cmsplugin-contact

Extendable contact plugin for django-cms with spam protection and i18n
BSD 2-Clause "Simplified" License
71 stars 62 forks source link

Limit line length to 80 characters #35

Closed maccesch closed 11 years ago

maccesch commented 11 years ago

See #33

mitar commented 11 years ago

I vote against this. We are in 21st century with HD displays.

m000 commented 11 years ago

I believe this should be closed. The problem is solved much more elegantly by providing a customized email template.

The default template simply escapes the user supplied text.

 {{ data.content|safe }}

By using the wordwrap template filter one can limit emails to 80 chars lines. You only have to add a custom cmsplugin_contact/email.txt template in your project templates dir. E.g.:

 {{ data.content|safe|wordrap:80 }}