diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2007-03-19 01:15:58 +0000 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2007-03-19 01:15:58 +0000 |
commit | 6734c7c896365533898d321b2eae4745c380310e (patch) | |
tree | d4fba1d0207d938efb25ff0434d3aa204ef13de0 | |
parent | 5cb38949a5b9275cce80bc658ab62fd891d0687e (diff) | |
download | markdown-6734c7c896365533898d321b2eae4745c380310e.tar.gz markdown-6734c7c896365533898d321b2eae4745c380310e.tar.bz2 markdown-6734c7c896365533898d321b2eae4745c380310e.zip |
Fixed a GUID issue.
-rw-r--r-- | mdx_rss.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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"] : |