From: ureimers Date: Tue, 10 Dec 2013 10:19:22 +0000 (+0100) Subject: Fixed rendering of ``-3`` X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d8ea1b1784684e5c5e13d375be69e4b8650cf781;p=web%2Fkonrad%2Ftwig.git Fixed rendering of ``-3`` The missing space between "``-3``" and "(this is just syntactic[...])" led to the ``-3`` being rendered wrong. The parser must've ignored the closing "``" when it was directly followed by a non-space character. --- diff --git a/doc/templates.rst b/doc/templates.rst index c0ea267..960d101 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -642,7 +642,7 @@ but exists for completeness' sake. The following operators are supported: ``4``. * ``//``: Divides two numbers and returns the floored integer result. ``{{ 20 - // 7 }}`` is ``2``, ``{{ -20 // 7 }}`` is ``-3``(this is just syntactic + // 7 }}`` is ``2``, ``{{ -20 // 7 }}`` is ``-3`` (this is just syntactic sugar for the :doc:`round` filter). * ``*``: Multiplies the left operand with the right one. ``{{ 2 * 2 }}`` would