mirror of
https://github.com/django/django.git
synced 2025-07-03 17:29:12 +00:00
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
This commit is contained in:
parent
018e2c055a
commit
975415a8ce
@ -41,10 +41,11 @@ def lorem(parser, token):
|
|||||||
paragraph (starting "Lorem ipsum dolor sit amet, consectetuer...").
|
paragraph (starting "Lorem ipsum dolor sit amet, consectetuer...").
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
* ``{% lorem %}`` will output the common "lorem ipsum" paragraph
|
|
||||||
* ``{% lorem 3 p %}`` will output the common "lorem ipsum" paragraph
|
* ``{% lorem %}`` will output the common "lorem ipsum" paragraph
|
||||||
and two random paragraphs each wrapped in HTML ``<p>`` tags
|
* ``{% lorem 3 p %}`` will output the common "lorem ipsum" paragraph
|
||||||
* ``{% lorem 2 w random %}`` will output two random latin words
|
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())
|
bits = list(token.split_contents())
|
||||||
tagname = bits[0]
|
tagname = bits[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user