Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve whitespace docs to reflect reality.

  • Loading branch information...
commit b4188e0d18d211aed914669de79607fe7bef042b 1 parent a21f2ed
@PaulMcMillan PaulMcMillan authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 docs/templates.rst
View
9 docs/templates.rst
@@ -152,10 +152,11 @@ yourself::
Whitespace Control
------------------
-In the default configuration whitespace is not further modified by the
-template engine, so each whitespace (spaces, tabs, newlines etc.) is returned
-unchanged. If the application configures Jinja to `trim_blocks` the first
-newline after a a template tag is removed automatically (like in PHP).
+In the default configuration, a single trailing newline is stripped if
+present, and whitespace is not further modified by the template engine. Each
+whitespace (spaces, tabs, newlines etc.) is returned unchanged. If the
+application configures Jinja to `trim_blocks` the first newline after a a
+template tag is removed automatically (like in PHP).
But you can also strip whitespace in templates by hand. If you put an minus
sign (``-``) to the start or end of an block (for example a for tag), a
Please sign in to comment.
Something went wrong with that request. Please try again.