fixed indentations

This commit is contained in:
Max Nowack
2014-11-11 18:32:37 +01:00
parent f46592e233
commit b9dfce389e

View File

@@ -130,42 +130,42 @@ function generateXML (data){
function RSS (options, items) { function RSS (options, items) {
options = options || {}; options = options || {};
this.title = options.title || 'Untitled RSS Feed'; this.title = options.title || 'Untitled RSS Feed';
this.description = options.description || ''; this.description = options.description || '';
this.generator = options.generator || 'RSS for Node'; this.generator = options.generator || 'RSS for Node';
this.feed_url = options.feed_url; this.feed_url = options.feed_url;
this.site_url = options.site_url; this.site_url = options.site_url;
this.image_url = options.image_url; this.image_url = options.image_url;
this.author = options.author; this.author = options.author;
this.categories = options.categories; this.categories = options.categories;
this.pubDate = options.pubDate; this.pubDate = options.pubDate;
this.hub = options.hub; this.hub = options.hub;
this.docs = options.docs; this.docs = options.docs;
this.copyright = options.copyright; this.copyright = options.copyright;
this.language = options.language; this.language = options.language;
this.managingEditor = options.managingEditor; this.managingEditor = options.managingEditor;
this.webMaster = options.webMaster; this.webMaster = options.webMaster;
this.ttl = options.ttl; this.ttl = options.ttl;
//option to return feed as GeoRSS is set automatically if feed.lat/long is used //option to return feed as GeoRSS is set automatically if feed.lat/long is used
this.geoRSS = options.geoRSS || false; this.geoRSS = options.geoRSS || false;
this.custom_namespaces = options.custom_namespaces || {}; this.custom_namespaces = options.custom_namespaces || {};
this.custom_elements = options.custom_elements || []; this.custom_elements = options.custom_elements || [];
this.items = items || []; this.items = items || [];
this.item = function (options) { this.item = function (options) {
options = options || {}; options = options || {};
var item = { var item = {
title: options.title || 'No title', title: options.title || 'No title',
description: options.description || '', description: options.description || '',
url: options.url, url: options.url,
guid: options.guid, guid: options.guid,
categories: options.categories || [], categories: options.categories || [],
author: options.author, author: options.author,
date: options.date, date: options.date,
lat: options.lat, lat: options.lat,
long: options.long, long: options.long,
enclosure: options.enclosure || false, enclosure: options.enclosure || false,
custom_elements: options.custom_elements || [] custom_elements: options.custom_elements || []
}; };
this.items.push(item); this.items.push(item);