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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 7 15:45:01 CET 2023


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #156230|0                           |1
        is obsolete|                            |

--- Comment #35 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 158602
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158602&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

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

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


More information about the Koha-bugs mailing list