From 7194b1adaad92a16d6461c5a6fdfa42829df1dfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Egu=C3=ADluz?= Date: Fri, 23 Dec 2011 10:26:49 +0100 Subject: [PATCH] Added a notice in the `nl2br` filter documentation about the proper Twig version to use it --- doc/filters/nl2br.rst | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/doc/filters/nl2br.rst b/doc/filters/nl2br.rst index 366ca83..694c672 100644 --- a/doc/filters/nl2br.rst +++ b/doc/filters/nl2br.rst @@ -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 -- 1.7.2.5