mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
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.
This commit is contained in:
+1
-1
@@ -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<filters/round>` filter).
|
||||
|
||||
* ``*``: Multiplies the left operand with the right one. ``{{ 2 * 2 }}`` would
|
||||
|
||||
Reference in New Issue
Block a user