Projet

Général

Profil

0001-emails-change-rst-paragraphs-so-manual-newlines-are-.patch

Frédéric Péters, 19 juillet 2018 15:45

Télécharger (1,46 ko)

Voir les différences:

Subject: [PATCH] emails: change rst paragraphs so manual newlines are
 considered (#25376)

 wcs/formdef.py       | 3 +--
 wcs/qommon/emails.py | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
wcs/formdef.py
1393 1393
Hello,
1394 1394

  
1395 1395
[if-any user]
1396
This mail is a reminder about the form you just submitted; you can consult it
1397
with this link: [url]
1396
This mail is a reminder about the form you just submitted; you can consult it with this link: [url]
1398 1397
[else]
1399 1398
This mail is a reminder about the form you just submitted.
1400 1399
[end]
wcs/qommon/emails.py
159 159
                        'report_level': 5},
160 160
                    config_section = None,
161 161
                    enable_exit_status = None)
162
            # change paragraphs so manual newlines are considered.
163
            htmlmail = htmlmail.replace('<p>', '<p style="white-space: pre-line;">')
162 164
        except:
163 165
            htmlmail = None
164 166

  
165
-