From: Sean Hammond Date: Tue, 28 Sep 2010 00:42:30 +0000 (+0100) Subject: Clean up trailing whitespace. X-Git-Url: https://projects.mako.cc/source/pyblosxom-markdown2/commitdiff_plain/eda9dfa5fda0ddc342099b8178b259d75f642ac7?ds=inline Clean up trailing whitespace. --- diff --git a/markdown-plugin.py b/markdown-plugin.py index f9140f7..6b03ed9 100644 --- a/markdown-plugin.py +++ b/markdown-plugin.py @@ -6,7 +6,7 @@ This plugin requires Python-Markdown v2.x, which you can download from: http://www.freewisdom.org/projects/python-markdown/ -Extract python-markdown into your pyblosxom plugins dir alongside this +Extract python-markdown into your pyblosxom plugins dir alongside this plugin. Your plugins dir should look like this: plugins/ <-- your pyblosxom plugins dir @@ -15,9 +15,9 @@ plugin. Your plugins dir should look like this: markdown/ <-- directory containing python-markdown's files ... <-- (any other pyblosxom plugins) -Now any posts with filenames ending in `.mkdn` will be passed through +Now any posts with filenames ending in `.mkdn` will be passed through python-markdown. - + Copyright (C) Benjamin Mako Hill, 2005 Updated for python-markdown 2 by seanh 2009 @@ -58,7 +58,7 @@ md = markdown.Markdown( #'meta', #'rss', 'toc', - #'wikilinks' + #'wikilinks' ] ) @@ -77,7 +77,7 @@ def to_ascii(char): else: return '?' -def parse(story): +def parse(story): # Replace any non-ascii characters in the story with '?', so that # python-markdown doesn't crash. ascii = "".join([to_ascii(x) for x in story])