Skip to content

Commit

Permalink
minor #4128 Fix markup in docs (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Fix markup in docs

Commits
-------

1c6f44e Fix markup
  • Loading branch information
fabpot committed Jul 9, 2024
2 parents 1ac1645 + 1c6f44e commit 13b9afa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ The escaping rules are implemented as follows:
{{ var|upper }} {# is equivalent to {{ var|upper|escape }} #}
* The `raw` filter should only be used at the end of the filter chain:
* The ``raw`` filter should only be used at the end of the filter chain:

.. code-block:: twig
Expand Down
4 changes: 2 additions & 2 deletions doc/filters/format_number.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ The list of supported styles:
* ``ordinal``;
* ``duration``.

As a shortcut, you can use the ``format_*_number`` filters by replacing `*` with
a style:
As a shortcut, you can use the ``format_*_number`` filters by replacing ``*``
with a style:

.. code-block:: twig
Expand Down
5 changes: 3 additions & 2 deletions doc/filters/trim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ Arguments

* ``character_mask``: The characters to strip

* ``side``: The default is to strip from the left and the right (`both`) sides, but `left`
and `right` will strip from either the left side or right side only
* ``side``: The default is to strip from the left and the right (``both``)
sides, but ``left`` and ``right`` will strip from either the left side or
right side only

.. _`trim`: https://www.php.net/trim
.. _`ltrim`: https://www.php.net/ltrim
Expand Down
8 changes: 4 additions & 4 deletions doc/tags/for.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ The ``..`` operator can take any expression at both sides:
If you need a step different from 1, you can use the ``range`` function
instead.
The `loop` variable
-------------------
The ``loop`` variable
---------------------

Inside of a ``for`` loop block you can access some special variables:

Expand Down Expand Up @@ -80,8 +80,8 @@ Variable Description
``loop.last`` variables are only available for PHP arrays, or objects that
implement the ``Countable`` interface.

The `else` Clause
-----------------
The ``else`` Clause
-------------------

If no iteration took place because the sequence was empty, you can render a
replacement block by using ``else``:
Expand Down

0 comments on commit 13b9afa

Please sign in to comment.