From 340e3738185c3c2e017bdd907b2b5d13696d3974 Mon Sep 17 00:00:00 2001 From: chris-laplante <40474653+chris-laplante@users.noreply.github.com> Date: Mon, 30 Mar 2020 10:23:40 -0400 Subject: [PATCH 1/3] Clarify instructions for escaping special character sequences --- tornado/template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tornado/template.py b/tornado/template.py index 1433dfae6a..fe31d0ee3d 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -98,8 +98,7 @@ def add(x, y): To comment out a section so that it is omitted from the output, surround it with ``{# ... #}``. -These tags may be escaped as ``{{!``, ``{%!``, and ``{#!`` -if you need to include a literal ``{{``, ``{%``, or ``{#`` in the output. +To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as ``{{!``, ``{%!``, and ``{#!``, respectively. ``{% apply *function* %}...{% end %}`` From 72a9c061ba47038f0a6ab8d74f41cc87459258dc Mon Sep 17 00:00:00 2001 From: chris-laplante <40474653+chris-laplante@users.noreply.github.com> Date: Mon, 30 Mar 2020 10:56:45 -0400 Subject: [PATCH 2/3] Fix line length --- tornado/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tornado/template.py b/tornado/template.py index fe31d0ee3d..8b8ce61006 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -98,7 +98,8 @@ def add(x, y): To comment out a section so that it is omitted from the output, surround it with ``{# ... #}``. -To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as ``{{!``, ``{%!``, and ``{#!``, respectively. +To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as +``{{!``, ``{%!``, and ``{#!``, respectively. ``{% apply *function* %}...{% end %}`` From fa9ce3014300d767790c7ea485d3d5e2d96406d9 Mon Sep 17 00:00:00 2001 From: chris-laplante <40474653+chris-laplante@users.noreply.github.com> Date: Mon, 30 Mar 2020 11:07:05 -0400 Subject: [PATCH 3/3] Trailing whitespace --- tornado/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/template.py b/tornado/template.py index 8b8ce61006..adad05d554 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -98,7 +98,7 @@ def add(x, y): To comment out a section so that it is omitted from the output, surround it with ``{# ... #}``. -To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as +To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as ``{{!``, ``{%!``, and ``{#!``, respectively.