From: Fabien Potencier Date: Fri, 10 Oct 2014 23:31:53 +0000 (+0200) Subject: fixed formatting in the docs X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=997f2f08234c9791f4bf454dc9459ad0ff1cd498;p=web%2Fkonrad%2Ftwig.git fixed formatting in the docs --- diff --git a/doc/filters/batch.rst b/doc/filters/batch.rst index b0b9964..30dd782 100644 --- a/doc/filters/batch.rst +++ b/doc/filters/batch.rst @@ -2,7 +2,7 @@ ========= .. versionadded:: 1.12.3 - The batch filter was added in Twig 1.12.3. + The ``batch`` filter was added in Twig 1.12.3. The ``batch`` filter "batches" items by returning a list of lists with the given number of items. If you provide a second parameter, it is used to fill diff --git a/doc/filters/first.rst b/doc/filters/first.rst index 4295e83..674c1f9 100644 --- a/doc/filters/first.rst +++ b/doc/filters/first.rst @@ -2,7 +2,7 @@ ========= .. versionadded:: 1.12.2 - The first filter was added in Twig 1.12.2. + The ``first`` filter was added in Twig 1.12.2. The ``first`` filter returns the first "element" of a sequence, a mapping, or a string: diff --git a/doc/filters/last.rst b/doc/filters/last.rst index 723c0b5..345b657 100644 --- a/doc/filters/last.rst +++ b/doc/filters/last.rst @@ -2,7 +2,7 @@ ======== .. versionadded:: 1.12.2 - The last filter was added in Twig 1.12.2. + The ``last`` filter was added in Twig 1.12.2. The ``last`` filter returns the last "element" of a sequence, a mapping, or a string: diff --git a/doc/filters/nl2br.rst b/doc/filters/nl2br.rst index 694c672..5c923e1 100644 --- a/doc/filters/nl2br.rst +++ b/doc/filters/nl2br.rst @@ -2,7 +2,7 @@ ========= .. versionadded:: 1.5 - The nl2br filter was added in Twig 1.5. + The ``nl2br`` filter was added in Twig 1.5. The ``nl2br`` filter inserts HTML line breaks before all newlines in a string: diff --git a/doc/filters/number_format.rst b/doc/filters/number_format.rst index 3e60691..3114e84 100644 --- a/doc/filters/number_format.rst +++ b/doc/filters/number_format.rst @@ -2,7 +2,7 @@ ================= .. versionadded:: 1.5 - The number_format filter was added in Twig 1.5 + The ``number_format`` filter was added in Twig 1.5 The ``number_format`` filter formats numbers. It is a wrapper around PHP's `number_format`_ function: diff --git a/doc/filters/slice.rst b/doc/filters/slice.rst index afc8300..a856664 100644 --- a/doc/filters/slice.rst +++ b/doc/filters/slice.rst @@ -2,7 +2,7 @@ =========== .. versionadded:: 1.6 - The slice filter was added in Twig 1.6. + The ``slice`` filter was added in Twig 1.6. The ``slice`` filter extracts a slice of a sequence, a mapping, or a string: diff --git a/doc/filters/split.rst b/doc/filters/split.rst index 5c70b46..bbc6d79 100644 --- a/doc/filters/split.rst +++ b/doc/filters/split.rst @@ -2,7 +2,7 @@ ========= .. versionadded:: 1.10.3 - The split filter was added in Twig 1.10.3. + The ``split`` filter was added in Twig 1.10.3. The ``split`` filter splits a string by the given delimiter and returns a list of strings: diff --git a/doc/filters/trim.rst b/doc/filters/trim.rst index 0c5b32e..4ddb208 100644 --- a/doc/filters/trim.rst +++ b/doc/filters/trim.rst @@ -2,7 +2,7 @@ ======== .. versionadded:: 1.6.2 - The trim filter was added in Twig 1.6.2. + The ``trim`` filter was added in Twig 1.6.2. The ``trim`` filter strips whitespace (or other characters) from the beginning and end of a string: diff --git a/doc/functions/dump.rst b/doc/functions/dump.rst index 54f8d4e..a231f08 100644 --- a/doc/functions/dump.rst +++ b/doc/functions/dump.rst @@ -2,7 +2,7 @@ ======== .. versionadded:: 1.5 - The dump function was added in Twig 1.5. + The ``dump`` function was added in Twig 1.5. The ``dump`` function dumps information about a template variable. This is mostly useful to debug a template that does not behave as expected by diff --git a/doc/functions/include.rst b/doc/functions/include.rst index 8feb0f1..33bd56d 100644 --- a/doc/functions/include.rst +++ b/doc/functions/include.rst @@ -2,7 +2,7 @@ =========== .. versionadded:: 1.12 - The include function was added in Twig 1.12. + The ``include`` function was added in Twig 1.12. The ``include`` function returns the rendered content of a template: diff --git a/doc/functions/random.rst b/doc/functions/random.rst index acbffe5..168e74f 100644 --- a/doc/functions/random.rst +++ b/doc/functions/random.rst @@ -2,7 +2,7 @@ ========== .. versionadded:: 1.5 - The random function was added in Twig 1.5. + The ``random`` function was added in Twig 1.5. .. versionadded:: 1.6 String and integer handling was added in Twig 1.6. diff --git a/doc/functions/source.rst b/doc/functions/source.rst index defa5fb..8ff39c2 100644 --- a/doc/functions/source.rst +++ b/doc/functions/source.rst @@ -2,7 +2,7 @@ ========== .. versionadded:: 1.15 - The source function was added in Twig 1.15. + The ``source`` function was added in Twig 1.15. The ``source`` function returns the content of a template without rendering it: diff --git a/doc/functions/template_from_string.rst b/doc/functions/template_from_string.rst index 95d9256..ce6a60d 100644 --- a/doc/functions/template_from_string.rst +++ b/doc/functions/template_from_string.rst @@ -2,7 +2,7 @@ ======================== .. versionadded:: 1.11 - The template_from_string function was added in Twig 1.11. + The ``template_from_string`` function was added in Twig 1.11. The ``template_from_string`` function loads a template from a string: diff --git a/doc/tags/do.rst b/doc/tags/do.rst index eca63d0..1c344e3 100644 --- a/doc/tags/do.rst +++ b/doc/tags/do.rst @@ -2,7 +2,7 @@ ====== .. versionadded:: 1.5 - The do tag was added in Twig 1.5. + The ``do`` tag was added in Twig 1.5. The ``do`` tag works exactly like the regular variable expression (``{{ ... }}``) just that it doesn't print anything: