Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit d0f162c73c35b304e1cf9a8133b3a8f54fd3f740 1 parent b05abd8
Carl Meyer carljm authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/markup/templatetags/markup.py
6 django/contrib/markup/templatetags/markup.py
View
@@ -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", {})
Please sign in to comment.
Something went wrong with that request. Please try again.