Commits

Waylan Limberg committed e6e24b3

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]

Comments (0)

Files changed (4)

         @returns: A serialized XHTML body."""
         #try :
 
-        if source :
+        if source is not None: #Allow blank string
             self.source = source
 
         if not self.source :
 
         actual_output = ""
         actual_lines = []
-        md.source = ""
+        #md.source = ""
         gc.collect()
         mem = memory()
         t = time.clock()
 
 
 #testDirectory("tests/basic")
-#testDirectory("tests/markdown-test", measure_time=True)
+testDirectory("tests/markdown-test", measure_time=True)
 
 testDirectory("tests/misc", measure_time=True)
 #testDirectory("tests/extensions-x-footnotes-toc")

tests/misc/blank.html

Empty file added.

tests/misc/blank.txt

Empty file added.