From 6b25dccf335479d27ff5940d5f459df039b1b574 Mon Sep 17 00:00:00 2001 From: fancyweb Date: Sat, 11 Jan 2020 12:21:32 +0100 Subject: [PATCH] Fix versionadded in doc --- doc/functions/block.rst | 4 ++-- doc/functions/constant.rst | 4 ++-- doc/tests/constant.rst | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/functions/block.rst b/doc/functions/block.rst index c62614822a..927fc321ff 100644 --- a/doc/functions/block.rst +++ b/doc/functions/block.rst @@ -1,10 +1,10 @@ ``block`` ========= -.. versionadded: 1.28 +.. versionadded:: 1.28 Using ``block`` with the ``defined`` test was added in Twig 1.28. -.. versionadded: 1.28 +.. versionadded:: 1.28 Support for the template argument was added in Twig 1.28. When a template uses inheritance and if you want to print a block multiple diff --git a/doc/functions/constant.rst b/doc/functions/constant.rst index f9d836cd1c..bb19858c22 100644 --- a/doc/functions/constant.rst +++ b/doc/functions/constant.rst @@ -1,10 +1,10 @@ ``constant`` ============ -.. versionadded: 1.12.1 +.. versionadded:: 1.12.1 constant now accepts object instances as the second argument. -.. versionadded: 1.28 +.. versionadded:: 1.28 Using ``constant`` with the ``defined`` test was added in Twig 1.28. ``constant`` returns the constant value for a given string: diff --git a/doc/tests/constant.rst b/doc/tests/constant.rst index 98abf4d45d..5dc87e3ecd 100644 --- a/doc/tests/constant.rst +++ b/doc/tests/constant.rst @@ -1,7 +1,7 @@ ``constant`` ============ -.. versionadded: 1.13.1 +.. versionadded:: 1.13.1 constant now accepts object instances as the second argument. ``constant`` checks if a variable has the exact same value as a constant. You