From 7b6c472167cb8e0f66286c75e76f4f326e5caa56 Mon Sep 17 00:00:00 2001
From: Adrian Holovaty
Date: Fri, 29 Jul 2005 23:15:50 +0000
Subject: [PATCH] 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
---
tests/builddocs.py | 1 +
1 file changed, 1 insertion(+)
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 = '%s
' % blurb.strip().replace('\n\n', '
')
+ blurb = re.sub(r'``(.*?)``', '\\1', blurb)
api_usage = mod.API_TESTS
# Get the source code of the model, without the docstring or the