From a413a2db9f83e8afe8342b769445823df770700f Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 26 Jan 2016 11:46:19 +0100 Subject: fix rss feed --- src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/main') diff --git a/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy b/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy index 0d53c08..7d72fbe 100644 --- a/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy +++ b/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy @@ -7,12 +7,10 @@ import org.xapek.yvesf.classifieds.Model.ClassifiedsList class Dumper { static dump(ClassifiedsList classifiedList, PrintWriter writer) { - new MarkupBuilder(writer).root { - rss(version: '2.0') { - channel { - title('Glocals') - description('glocal classifieds feed') - } + new MarkupBuilder(writer).rss(version: '2.0') { + channel { + title('Glocals') + description('glocal classifieds feed') classifiedList.each { Classified classified -> item { title("${classified.type} - ${classified.title} - ${classified.composedLocation}") @@ -20,7 +18,7 @@ class Dumper { link(classified.link) author("${classified.mem_name}@noemail.local") description(getDescription(classified) + classified.description) - } + } } } } -- cgit v1.2.1