From 5bf0921bade9cedc88441183e9d60e357fe779ec Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jun 2012 10:32:48 +0200 Subject: [PATCH] Bug 5342: Followup Delete tags for letters which are not html --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 36e6213..c8a43c1 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -518,7 +518,7 @@ sub GetPreparedLetter { } $letter->{content} =~ s/<<\S*>>//go; #remove any stragglers -# $letter->{content} =~ s/<<[^>]*>>//go; + $letter->{content} =~ s/<[^>]*>//go unless $letter->{is_html}; #remove tags if letter is not html return $letter; } -- 1.7.10.4