From fe252625a05e98dc52c9c4010185871e6086e410 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jun 2012 10:32:48 +0200 Subject: [PATCH 1/1] Bug 5342: Followup Delete tags for letters which are not html --- C4/Letters.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 89213fe..ff896c1 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -510,7 +510,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.7.3