From 12bc9650219ca19104931d53aafccf5427d407d4 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 6 May 2015 03:41:45 +0000
Subject: [PATCH] Split header into multiple lines. Add missing newline.

---
 exec/podcast.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/exec/podcast.js b/exec/podcast.js
index 99d31c0d72..8a56160b39 100644
--- a/exec/podcast.js
+++ b/exec/podcast.js
@@ -120,7 +120,9 @@ for (i = base.first_msg; i <= base.last_msg; i++) {
 }
 
 // TODO: iTunes tags?
-out.write('<?xml version="1.0"?>\n<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">\n\t<channel>\n');
+out.write('<?xml version="1.0"?>\n');
+out.write('<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">\n');
+out.write('\t<channel>\n');
 out.write('\t\t<title>'+encode_xml(opts.Title)+'</title>\n');
 out.write('\t\t<description>'+encode_xml(opts.Description)+'</description>\n');
 out.write('\t\t<link>'+encode_xml(opts.Link)+'</link>\n');
@@ -152,7 +154,7 @@ add_channel_opt_attribute('Rating');
 // TODO: textInput
 add_channel_opt_attribute('SkipHours');
 add_channel_opt_attribute('SkipDays');
-out.write('\t\t<atom:link href="'+opts.FeedURI+'" rel="self" type="application/rss+xml" />');
+out.write('\t\t<atom:link href="'+opts.FeedURI+'" rel="self" type="application/rss+xml" />\n');
 
 for (i=hdrs.length - 1; i >= 0; i--) {
 	body = base.get_msg_body(hdrs[i].number);
-- 
GitLab