aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-27 11:06:21 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-27 11:06:21 -0800
commita4e4d2855bbad1c1400fb89ba663f7193d76dc10 (patch)
tree71722c65942bd911ef1c9adda1183f953542d150 /actionpack/lib
parent699e460be2ae9ab419ff5ce17f7ebbbd63b4ef47 (diff)
parenta6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e (diff)
downloadrails-a4e4d2855bbad1c1400fb89ba663f7193d76dc10.tar.gz
rails-a4e4d2855bbad1c1400fb89ba663f7193d76dc10.tar.bz2
rails-a4e4d2855bbad1c1400fb89ba663f7193d76dc10.zip
Merge pull request #5191 from rafaelfranca/fix-393
Add a new line after the textarea opening tag.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/tags/text_area.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/text_area.rb b/actionpack/lib/action_view/helpers/tags/text_area.rb
index a7db8eb437..461a049fc2 100644
--- a/actionpack/lib/action_view/helpers/tags/text_area.rb
+++ b/actionpack/lib/action_view/helpers/tags/text_area.rb
@@ -12,7 +12,7 @@ module ActionView
options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split)
end
- content_tag("textarea", ERB::Util.html_escape(options.delete('value') || value_before_type_cast(object)), options)
+ content_tag("textarea", "\n#{options.delete('value') || value_before_type_cast(object)}", options)
end
end
end