From 57566ce2c8083b69a0d1664d504d0500be42e280 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 11 Apr 2015 15:19:02 +0300 Subject: [PATCH] Chomp article titles --- lib/Plack/App/Gruntmaster/HTML.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 9f6f2ec..d6f6c25 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -69,6 +69,7 @@ sub render_article { my ($art, $lang, %args) = @_; $lang //= 'en'; my $title = read_file "a/$art.$lang.title"; + chomp $title; my $meat = read_file "a/$art.$lang"; _render('skel', $lang, title => $title , meat => $meat, %args) } -- 2.39.2