From 40363062881b90a3bb5a92f1ba7c14e2aef5d267 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 8873c46..8d479b2 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -520,7 +520,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