aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-27 09:44:58 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-27 13:52:55 -0300
commita6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e (patch)
treed2fe581114ff81d0cf8a75427deb2f7ace4507db /actionpack/lib/action_view
parent551566db06f54f35aeadaa320ef073ea1335ad60 (diff)
downloadrails-a6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e.tar.gz
rails-a6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e.tar.bz2
rails-a6074c34e5e27b8d2b242808b7eb4e3f3ccf5f6e.zip
Add a new line after the textarea opening tag.
Closes #393
Diffstat (limited to 'actionpack/lib/action_view')
-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