[Koha-bugs] [Bug 14703] Holidays description shows \r\n for every new line

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 28 09:20:53 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14703

--- Comment #10 from Joonas Kylmälä <j.kylmala at gmail.com> ---
(In reply to Marcel de Rooy from comment #8)
> Hobby holiday project:
> 
> See newHolidays.pl
> 
> if ($description) {
>     $description =~ s/\r/\\r/g;
>     $description =~ s/\n/\\n/g;
> }

I looked into that. Changing the new line into <br> didn't work in the because
then we need to also change the description editor to convert <br> to \r\n. So
it's similar fix to that what we do now when displaying the description (but
more changes with no reason). And so we have done already the fix to change the
description so I will go with the current patch.

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


More information about the Koha-bugs mailing list