okfde / froide

Freedom Of Information Portal
MIT License
357 stars 86 forks source link

Clean too many empty lines at the end of emails #304

Closed robbi5 closed 5 years ago

robbi5 commented 5 years ago

Current example: https://fragdenstaat.de/anfrage/quellcode-des-wahl-o-mat-server-variante/#nachricht-380946

Especially the bpb likes to add a whole lot of empty lines to the end of their emails.

stefanw commented 5 years ago

Fixed in 9bb72b62811eef0a94576648113e8f1e31262cce.

Thunderbird and Mail.app both strip the lines, but I don't get the rules around it. I'm leaving a max of three newlines in body text now.