From f272367830578131a5e03560854c7c364fb530dc Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 28 Apr 2009 08:44:01 +0200 Subject: [PATCH] Strip carriage returns when saving a template's content. --- Gruta/Template/Artemus.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Gruta/Template/Artemus.pm b/Gruta/Template/Artemus.pm index 5d570b8..5c5dc82 100644 --- a/Gruta/Template/Artemus.pm +++ b/Gruta/Template/Artemus.pm @@ -228,6 +228,7 @@ sub _artemus { my $msg = shift; $content = $self->{_artemus}->unarmor($content); + $content =~ s/\r//g; my $template = $data->source->template($id); -- 2.11.4.GIT