merged branch javiereguiluz/add-nl2br-notice (PR #568)

Commits
-------

7194b1a Added a notice in the `nl2br` filter documentation about the proper Twig version to use it

Discussion
----------

Added a notice in the `nl2br` filter documentation ...

... about the proper Twig version to use it (1.5)
This commit is contained in:
Fabien Potencier
2011-12-23 11:29:22 +01:00
+3
View File
@@ -1,6 +1,9 @@
``nl2br``
=========
.. versionadded:: 1.5
The nl2br filter was added in Twig 1.5.
The ``nl2br`` filter inserts HTML line breaks before all newlines in a string:
.. code-block:: jinja