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

Martin Renvoize <[email protected]> changed:

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

--- Comment #35 from Martin Renvoize <[email protected]> ---
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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to