You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/templates.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -181,14 +181,18 @@ end
181
181
182
182
Code editors commonly add a trailing newline character to source files in keeping with the Unix standard. Including trailing whitespace in component templates can result in unwanted whitespace in the HTML, eg. if the component is rendered before the period at the end of a sentence.
183
183
184
-
To strip trailing whitespace from component templates, use the `strip_trailing_whitespace`class method.
184
+
To strip trailing whitespace from component templates, use the `strip_trailing_whitespace`component-local config option.
0 commit comments