mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
remove development print and allow spaces between triple backtick and syntax name in codeblock
This commit is contained in:
parent
86682d4764
commit
b7657be31c
|
@ -244,7 +244,7 @@ if markdown is not None and pygments is not None:
|
|||
|
||||
class CodeBlockPreprocessor(Preprocessor):
|
||||
pattern = re.compile(
|
||||
r'^\s*``` ([^\n]+)\n(.+?)^\s*```', re.M|re.S)
|
||||
r'^\s*``` *([^\n]+)\n(.+?)^\s*```', re.M|re.S)
|
||||
|
||||
formatter = HtmlFormatter()
|
||||
|
||||
|
|
|
@ -112,7 +112,6 @@ class TestViewNamesAndDescriptions(TestCase):
|
|||
}]
|
||||
```"""
|
||||
|
||||
print("MOCK:\n[%s]" % MockView().get_view_description())
|
||||
assert MockView().get_view_description() == DESCRIPTION
|
||||
|
||||
def test_view_description_can_be_empty(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user