mirror of https://github.com/django/django.git
Changed tests.builddocs to handle ReST double-backquotes (albeit naively)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b3e8b20b3e
commit
7b6c472167
|
@ -34,6 +34,7 @@ def make_docs_from_model_tests(output_dir):
|
|||
# Clean up the title and blurb.
|
||||
title, blurb = mod.__doc__.strip().split('\n', 1)
|
||||
blurb = '<p>%s</p>' % blurb.strip().replace('\n\n', '</p><p>')
|
||||
blurb = re.sub(r'``(.*?)``', '<tt class="docutils literal"><span class="pre">\\1</span></tt>', blurb)
|
||||
api_usage = mod.API_TESTS
|
||||
|
||||
# Get the source code of the model, without the docstring or the
|
||||
|
|
Loading…
Reference in New Issue