Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[1.4.x] Fixed #23499 -- Error in built-in template tag "now" document…
…ation

Backport of ab82483 from master.
  • Loading branch information
JDougherty authored and bmispelon committed Sep 17, 2014
1 parent ba2be27 commit 3132eda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ref/templates/builtins.txt
Expand Up @@ -744,11 +744,11 @@ Example::
It is {% now "jS F Y H:i" %}

Note that you can backslash-escape a format string if you want to use the
"raw" value. In this example, "f" is backslash-escaped, because otherwise
"f" is a format string that displays the time. The "o" doesn't need to be
escaped, because it's not a format character::
"raw" value. In this example, both "o" and "f" are backslash-escaped, because
otherwise each is a format string that displays the year and the time,
respectively::

It is the {% now "jS o\f F" %}
It is the {% now "jS \o\f F" %}

This would display as "It is the 4th of September".

Expand Down

0 comments on commit 3132eda

Please sign in to comment.