From d0f162c73c35b304e1cf9a8133b3a8f54fd3f740 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 1 Mar 2012 19:49:19 +0000 Subject: [PATCH] Corrected contrib.markup filter errors to not use misleading template syntax. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17610 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/markup/templatetags/markup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/contrib/markup/templatetags/markup.py b/django/contrib/markup/templatetags/markup.py index 968277284a..a6b8dde655 100644 --- a/django/contrib/markup/templatetags/markup.py +++ b/django/contrib/markup/templatetags/markup.py @@ -24,7 +24,7 @@ def textile(value): import textile except ImportError: if settings.DEBUG: - raise template.TemplateSyntaxError("Error in {% textile %} filter: The Python textile library isn't installed.") + raise template.TemplateSyntaxError("Error in 'textile' filter: The Python textile library isn't installed.") return force_unicode(value) else: return mark_safe(force_unicode(textile.textile(smart_str(value), encoding='utf-8', output='utf-8'))) @@ -51,7 +51,7 @@ def markdown(value, arg=''): import markdown except ImportError: if settings.DEBUG: - raise template.TemplateSyntaxError("Error in {% markdown %} filter: The Python markdown library isn't installed.") + raise template.TemplateSyntaxError("Error in 'markdown' filter: The Python markdown library isn't installed.") return force_unicode(value) else: # markdown.version was first added in 1.6b. The only version of markdown @@ -79,7 +79,7 @@ def restructuredtext(value): from docutils.core import publish_parts except ImportError: if settings.DEBUG: - raise template.TemplateSyntaxError("Error in {% restructuredtext %} filter: The Python docutils library isn't installed.") + raise template.TemplateSyntaxError("Error in 'restructuredtext' filter: The Python docutils library isn't installed.") return force_unicode(value) else: docutils_settings = getattr(settings, "RESTRUCTUREDTEXT_FILTER_SETTINGS", {})