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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 4 13:55:31 CEST 2023


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

--- Comment #1 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 155196
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155196&action=edit
Bug 34704: Fix regex

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.
You are the assignee for the bug.


More information about the Koha-bugs mailing list