From 784c6c0a8be47fc7dc9c91ca3cbce1b630edec55 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 31 Aug 2012 09:04:13 -0400 Subject: [PATCH] Bug 8708 [Revised] RSS feed for new comments is broken Removing white space from the beginning of the file so that XML processing will work correctly. Before the patch, viewing the page (/cgi-bin/koha/opac-showreviews.pl?format=rss) in a browser which supports RSS handling (ex: Firefox) will show you unformatted and broken-looking text. After the patch the page will trigger the browser's built-in RSS-handling format. Revision: Template now includes comment pointing out that the declaration must not have any white space before it. Signed-off-by: Nicole C. Engard Signed-off-by: Paul Poulain --- koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt index 215902258a..b35441985b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt @@ -1,6 +1,4 @@ -[% USE KohaDates %] - - +[% USE KohaDates # XML declaration should have no white space before it %] <![CDATA[[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] Catalog Recent Comments]]> -- 2.39.5