remove development print and allow spaces between triple backtick and syntax name in codeblock

This commit is contained in:
Matteo Nastasi 2017-10-19 16:33:49 +02:00
parent 86682d4764
commit b7657be31c
2 changed files with 1 additions and 2 deletions

View File

@ -244,7 +244,7 @@ if markdown is not None and pygments is not None:
class CodeBlockPreprocessor(Preprocessor): class CodeBlockPreprocessor(Preprocessor):
pattern = re.compile( pattern = re.compile(
r'^\s*``` ([^\n]+)\n(.+?)^\s*```', re.M|re.S) r'^\s*``` *([^\n]+)\n(.+?)^\s*```', re.M|re.S)
formatter = HtmlFormatter() formatter = HtmlFormatter()

View File

@ -112,7 +112,6 @@ class TestViewNamesAndDescriptions(TestCase):
}] }]
```""" ```"""
print("MOCK:\n[%s]" % MockView().get_view_description())
assert MockView().get_view_description() == DESCRIPTION assert MockView().get_view_description() == DESCRIPTION
def test_view_description_can_be_empty(self): def test_view_description_can_be_empty(self):