diff options
author | Lyle Mullican <ldmullican@gmail.com> | 2018-11-19 17:16:34 -0500 |
---|---|---|
committer | Lyle Mullican <ldmullican@gmail.com> | 2018-11-19 17:16:34 -0500 |
commit | 4fdc6269b669a8bab7ef4af53868356f6c47f9f5 (patch) | |
tree | 9dc476157badb90fc7bf3a7582064531a61bfd37 /actionview/CHANGELOG.md | |
parent | c4720a25ed8738095bd8e441c1406a7a7471d904 (diff) | |
download | rails-4fdc6269b669a8bab7ef4af53868356f6c47f9f5.tar.gz rails-4fdc6269b669a8bab7ef4af53868356f6c47f9f5.tar.bz2 rails-4fdc6269b669a8bab7ef4af53868356f6c47f9f5.zip |
Prevent TextHelper#word_wrap from stripping white space on the left
side of long lines; Fixes #34487
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r-- | actionview/CHANGELOG.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 1f537e725a..237a25ba4f 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,21 @@ +* Prevent `ActionView::TextHelper#word_wrap` from unexpectedly stripping white space from the _left_ side of lines. + + For example, given input like this: + + ``` + This is a paragraph with an initial indent, + followed by additional lines that are not indented, + and finally terminated with a blockquote: + "A pithy saying" + ``` + + Calling `word_wrap` should not trim the indents on the first and last lines. + + Fixes #34487 + + *Lyle Mullican* + + * Add allocations to template rendering instrumentation. Adds the allocations for template and partial rendering to the server output on render. |