Bug 35187: Fix missing line breaks in WELCOME notice

When a notices is marked as HTML, we need to use block elements
(p, div, li, etc.) or explicit line breaks.
This adds the line breaks where required.

To test:

WELCOME
* Without patch
* Make sure your Koha can send email (set up SMTP server, KohaAdminLibraryAddress)
* Make sure your patron has an email set
* In patron account, use "More > Welcome email"
* Verify all text is on one line
* Apply patch
* reset_all to install new sample notice templates
* Repeat test, verify welcome notice is now nice
This commit is contained in:
Katrin Fischer 2023-11-10 18:24:15 +00:00 committed by Fridolin Somers
parent f49e438ed9
commit d60fe27ea4

View file

@ -1418,15 +1418,15 @@ tables:
lang: default
content:
- "[% USE Koha %]"
- "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]."
- ""
- "Thank you for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]"
- ""
- "You can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</a>."
- ""
- "Your library card number is [% borrower.cardnumber %]"
- ""
- "If you have any problems or questions regarding your account, please contact the library."
- "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %].<br>"
- "<br>"
- "Thank you for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]<br>"
- "<br>"
- "You can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</a>.<br>"
- "<br>"
- "Your library card number is [% borrower.cardnumber %]<br>"
- "<br>"
- "If you have any problems or questions regarding your account, please contact the library."
- module: members
code: 2FA_OTP_TOKEN