summaryrefslogtreecommitdiff
path: root/src/main/groovy/org
diff options
context:
space:
mode:
authorYves Fischer <yves.fischer@cern.ch>2016-01-26 11:46:19 +0100
committerYves Fischer <yves.fischer@cern.ch>2016-01-26 11:46:19 +0100
commita413a2db9f83e8afe8342b769445823df770700f (patch)
tree2b102e88d0d16bd21aa9dd8710c43ae466d6b4fc /src/main/groovy/org
parent4612cf3d2cbe712943f6656a814657aad3303a83 (diff)
downloadglocals-classifieds-a413a2db9f83e8afe8342b769445823df770700f.tar.gz
glocals-classifieds-a413a2db9f83e8afe8342b769445823df770700f.zip
fix rss feed
Diffstat (limited to 'src/main/groovy/org')
-rw-r--r--src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy12
1 files changed, 5 insertions, 7 deletions
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)
- }
+ }
}
}
}