diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-14 19:48:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-14 19:48:24 -0400 |
| commit | 975415a8cef38cf2a49c3ce8234c15ef97a69b5f (patch) | |
| tree | f589bf1351e979b3f1f16eb536b3e24ee8f65502 | |
| parent | 018e2c055a894c4869985b0fda64e52a6c368f32 (diff) | |
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
| -rw-r--r-- | django/contrib/webdesign/templatetags/webdesign.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/django/contrib/webdesign/templatetags/webdesign.py b/django/contrib/webdesign/templatetags/webdesign.py index b870299cda..055de8999d 100644 --- a/django/contrib/webdesign/templatetags/webdesign.py +++ b/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] |
