[Koha-bugs] [Bug 34704] Print templates are formatted incorrectly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 26 15:56:06 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34704

--- Comment #12 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 156229
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156229&action=edit
Bug 34704: Stop <br /> tags being entered on every line in html letter
templates

This patch amends a regex check to stop <br /> tags from being added to every
line of html template

Test plan:
1) This is easy to see using a regex checking tool. In your browser go to
regex101.com
2) In the "Test string", copy and paste the text from the comment in the bug
3) In the regular expression field, enter 's/\n/<br \/>/g'
4) Observe that the output has a <br /> tag inserted after every html element
and it is now one line of text
5) Replace the regular expression with '^\s*\n'
6) The output should now be formatted correctly with no <br /> tags

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list