Merge pull request #16790 from cirosantilli/explain-erb-space-removal

Explain ERB space removal.

[ci skip]
This commit is contained in:
Rafael Mendonça França 2014-09-16 11:14:28 -03:00
commit 1bdb233bc2
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ module ActionView #:nodoc:
#
# If you absolutely must write from within a function use +concat+.
#
# <%- and -%> suppress leading and trailing whitespace, including the trailing newline, and can be used interchangeably with <% and %>.
# When on a line that only contains whitespaces except for the tag, <% %> suppress leading and trailing whitespace,
# including the trailing newline. <% %> and <%- -%> are the same.
# Note however that <%= %> and <%= -%> are different: only the latter removes trailing whitespaces.
#
# === Using sub templates
#