LP1927990 Bootstrap OPAC: Patron messages lose line breaks
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 21 Jun 2021 16:55:57 +0000 (12:55 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Thu, 17 Feb 2022 17:12:09 +0000 (12:12 -0500)
Fixes problem where messages added to the Patron Message Center
lose their line breaks in the Bootstrap OPAC and makes them
difficult to read.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates-bootstrap/opac/myopac/messages/single_message.tt2

index 32a1819..c12475c 100755 (executable)
@@ -37,7 +37,7 @@
         </div>
         <div class="my-2 col-12">
             <b>[% l("Message") %]</b>
-            <span class="mx-2">[% ctx.patron_messages.0.message | html %]</span>
+            <pre>[% ctx.patron_messages.0.message | html %]</pre>
         </div>
         </div>
     </div>