]> git.koha-community.org Git - koha.git/commit
Bug 35285: Add non-html template support to html_content wrapping
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 8 Nov 2023 09:59:30 +0000 (09:59 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 May 2024 13:18:03 +0000 (15:18 +0200)
commit5e9c9cb8226b7103c25152bdb5926335d09461d6
tree7cc7906c5882e43200a9ffa5657fbb605556c2b4
parent35e811d3acedcfb53fa07a62e09e720f674266ec
Bug 35285: Add non-html template support to html_content wrapping

This patch adds support for messages generated using non-html formatted
notice templates to the html_content method of Koha::Notice::Message.

We continue to wrap content for html generated messages with the
appropriate headers, css and title.

For non-html generated content we wrap in the <div style="white-space:
pre-wrap"> block to maintain text formatting as defined in the original
plaintext template.

Test
Follow the test plan for bug 30287, nothing should outwardly change.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6b413acfc41f580ac6b424c554ac47a6fa953782)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Notice/Message.pm