aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2007-11-03 20:24:53 +0000
committerWaylan Limberg <waylan@gmail.com>2007-11-03 20:24:53 +0000
commit5982780c3cc46f18dd3bd93022d61feb2972a843 (patch)
tree451fb13f6b882b9138c1e991e34d0a97caae4eeb /markdown.py
parent552bd256be6e710766062489132d9ab7ba756b37 (diff)
downloadmarkdown-5982780c3cc46f18dd3bd93022d61feb2972a843.tar.gz
markdown-5982780c3cc46f18dd3bd93022d61feb2972a843.tar.bz2
markdown-5982780c3cc46f18dd3bd93022d61feb2972a843.zip
Allow repeated calls to md.convert to pass in an empty string. Also fixed testing framework to allow tests for this and added tests. Fixes [1825231]
Diffstat (limited to 'markdown.py')
-rw-r--r--markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 181de1d..116a974 100644
--- a/markdown.py
+++ b/markdown.py
@@ -1628,7 +1628,7 @@ class Markdown:
@returns: A serialized XHTML body."""
#try :
- if source :
+ if source is not None: #Allow blank string
self.source = source
if not self.source :