Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 01, 2012
6  django/contrib/markup/templatetags/markup.py
@@ -24,7 +24,7 @@ def textile(value):
24 24
         import textile
25 25
     except ImportError:
26 26
         if settings.DEBUG:
27  
-            raise template.TemplateSyntaxError("Error in {% textile %} filter: The Python textile library isn't installed.")
  27
+            raise template.TemplateSyntaxError("Error in 'textile' filter: The Python textile library isn't installed.")
28 28
         return force_unicode(value)
29 29
     else:
30 30
         return mark_safe(force_unicode(textile.textile(smart_str(value), encoding='utf-8', output='utf-8')))
@@ -51,7 +51,7 @@ def markdown(value, arg=''):
51 51
         import markdown
52 52
     except ImportError:
53 53
         if settings.DEBUG:
54  
-            raise template.TemplateSyntaxError("Error in {% markdown %} filter: The Python markdown library isn't installed.")
  54
+            raise template.TemplateSyntaxError("Error in 'markdown' filter: The Python markdown library isn't installed.")
55 55
         return force_unicode(value)
56 56
     else:
57 57
         # markdown.version was first added in 1.6b. The only version of markdown
@@ -79,7 +79,7 @@ def restructuredtext(value):
79 79
         from docutils.core import publish_parts
80 80
     except ImportError:
81 81
         if settings.DEBUG:
82  
-            raise template.TemplateSyntaxError("Error in {% restructuredtext %} filter: The Python docutils library isn't installed.")
  82
+            raise template.TemplateSyntaxError("Error in 'restructuredtext' filter: The Python docutils library isn't installed.")
83 83
         return force_unicode(value)
84 84
     else:
85 85
         docutils_settings = getattr(settings, "RESTRUCTUREDTEXT_FILTER_SETTINGS", {})

0 notes on commit d0f162c

Please sign in to comment.
Something went wrong with that request. Please try again.