aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2007-03-19 01:15:58 +0000
committerYuri Takhteyev <yuri@freewisdom.org>2007-03-19 01:15:58 +0000
commit6734c7c896365533898d321b2eae4745c380310e (patch)
treed4fba1d0207d938efb25ff0434d3aa204ef13de0
parent5cb38949a5b9275cce80bc658ab62fd891d0687e (diff)
downloadmarkdown-6734c7c896365533898d321b2eae4745c380310e.tar.gz
markdown-6734c7c896365533898d321b2eae4745c380310e.tar.bz2
markdown-6734c7c896365533898d321b2eae4745c380310e.zip
Fixed a GUID issue.
-rw-r--r--mdx_rss.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdx_rss.py b/mdx_rss.py
index c15c9a0..2117baf 100644
--- a/mdx_rss.py
+++ b/mdx_rss.py
@@ -92,7 +92,12 @@ class RssPostProcessor (markdown.Postprocessor):
self.ext.getConfig("URL")))
item.appendChild(doc.createElement("title", heading))
- item.appendChild(doc.createElement("guid", heading))
+
+ guid = ''.join([x for x in heading if x.isalnum()])
+
+ guidElem = doc.createElement("guid", guid)
+ guidElem.setAttribute("isPermaLink", "false")
+ item.appendChild(guidElem)
elif child.nodeName in ["p"] :