summaryrefslogtreecommitdiff
path: root/src/main/groovy
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/groovy')
-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)
- }
+ }
}
}
}