From 37cde80bbe2cd43e6a3bad5218d1901620c90756 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sat, 8 Jun 2024 23:36:59 +0300 Subject: [PATCH] Fix standard description to replace new lines to HTML break --- mailboxes/mailboxes-lib.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailboxes/mailboxes-lib.pl b/mailboxes/mailboxes-lib.pl index c38bda979..cb57edc77 100755 --- a/mailboxes/mailboxes-lib.pl +++ b/mailboxes/mailboxes-lib.pl @@ -1463,11 +1463,15 @@ my $process_line = sub { $event{'dtend'} = $2; } elsif ($line =~ /^DESCRIPTION:(.*)$/) { - unshift(@{$event{'description'}}, $1); + my $description = $1; + $description =~ s/\\n/
/g; + $description =~ s/\\//g; + unshift(@{$event{'description'}}, $description); } elsif ($line =~ /^DESCRIPTION;LANGUAGE=([a-z]{2}-[A-Z]{2}):(.*)$/) { my $description = $2; $description =~ s/\\n/
/g; + $description =~ s/\\//g; unshift(@{$event{'description'}}, $description); } elsif ($line =~ /^LOCATION.*?:(.*)$/) {