retrogradeorbit / bootleg

Simple template processing command line tool to help build static websites
Eclipse Public License 2.0
256 stars 12 forks source link

[:link] tags produce malformed output in xml attempt #50

Closed retrogradeorbit closed 4 years ago

retrogradeorbit commented 4 years ago
[:rss {:version "2.0"}
 [:channel
  [:title "Epiccastle Blog"]
  [:description "Epiccastle.io Updates"]
  [:link "https://epiccastle.io/blog/"]
  [:lastBuildDate "Mon, 06 Sep 2010 00:01:00 +0000"]
  [:pubDate "Sun, 06 Sep 2009 16:20:00 +0000"]
  [:ttl "1800"]
  [:item
   [:title "Example Blog Post"]
   [:description "This is some examples"]
   [:link2 "https://epiccastle.io/blog/1/"]
   [:gid "7bd204c6-1655-4c27-aeee-53f933c5395f"]
   [:pubDate "Sun, 06 Sep 2009 16:20:00 +0000"]]

  ]
 ]

produces

<rss version="2.0"><channel><title>Epiccastle Blog</title><description>Epiccastle.io Updates</description><link><lastbuilddate>Mon, 06 Sep 2010 00:01:00 +0000</lastbuilddate><pubdate>Sun, 06 Sep 2009 16:20:00 +0000</pubdate><ttl>1800</ttl><item><title>Example Blog Post</title><description>This is some examples</description><link2>https://epiccastle.io/blog/1/</link2><gid>7bd204c6-1655-4c27-aeee-53f933c5395f</gid><pubdate>Sun, 06 Sep 2009 16:20:00 +0000</pubdate></item></channel></rss>

notice link is mangled white link2 is intact