summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-29 23:15:50 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-29 23:15:50 +0000
commit7b6c472167cb8e0f66286c75e76f4f326e5caa56 (patch)
treedc042a327d0d2bde2d6643ad260090e25ab267ce
parentb3e8b20b3eb6af376e57036275bf326349ca6190 (diff)
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
-rwxr-xr-xtests/builddocs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/builddocs.py b/tests/builddocs.py
index a02c7a826d..17da30050a 100755
--- a/tests/builddocs.py
+++ b/tests/builddocs.py
@@ -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