Test plan:
- Fill borrowernotes and opacnote with lines separated by lines
endings,
- save and check the content is displayed on a single line,
- apply this patch,
- check lines endings are displayed
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
[% IF ( patron.borrowernotes ) %]
<li id="patron-borrowernotes">
- <span class="label">Circulation note: </span>
- [% patron.borrowernotes | $raw %]
+ <span class="label">Circulation note: </span><br />
+ [% patron.borrowernotes | html | html_line_break %]
</li>
[% END %]
[% IF ( patron.opacnote ) %]
<li id="patron-opacnote">
- <span class="label">OPAC note:</span>
- [% patron.opacnote | html %]
+ <span class="label">OPAC note:</span><br />
+ [% patron.opacnote | html | html_line_break %]
</li>
[% END %]