From 5982780c3cc46f18dd3bd93022d61feb2972a843 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 3 Nov 2007 20:24:53 +0000 Subject: 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] --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown.py') 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 : -- cgit v1.2.3