Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a webdesign template tag docstring to prevent parsing as metadata.

Previously admindocs would throw an error when processing it:
"Error in "default-role" directive: no content permitted."

refs #6681
  • Loading branch information...
commit 975415a8cef38cf2a49c3ce8234c15ef97a69b5f 1 parent 018e2c0
@timgraham timgraham authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django/contrib/webdesign/templatetags/webdesign.py
View
9 django/contrib/webdesign/templatetags/webdesign.py
@@ -41,10 +41,11 @@ def lorem(parser, token):
paragraph (starting "Lorem ipsum dolor sit amet, consectetuer...").
Examples:
- * ``{% lorem %}`` will output the common "lorem ipsum" paragraph
- * ``{% lorem 3 p %}`` will output the common "lorem ipsum" paragraph
- and two random paragraphs each wrapped in HTML ``<p>`` tags
- * ``{% lorem 2 w random %}`` will output two random latin words
+
+ * ``{% lorem %}`` will output the common "lorem ipsum" paragraph
+ * ``{% lorem 3 p %}`` will output the common "lorem ipsum" paragraph
+ and two random paragraphs each wrapped in HTML ``<p>`` tags
+ * ``{% lorem 2 w random %}`` will output two random latin words
"""
bits = list(token.split_contents())
tagname = bits[0]
Please sign in to comment.
Something went wrong with that request. Please try again.