aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 16:59:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 16:59:35 +0000
commit14f06c2cc1248facaa233a6d8df6cd1d9501168c (patch)
tree18690b69dcbda9c323e15d88322f1e31fb49e50a /actionpack/lib/action_view/helpers/text_helper.rb
parent32a800761e3e6b126a9892375469bf0c2b455116 (diff)
downloadrails-14f06c2cc1248facaa233a6d8df6cd1d9501168c.tar.gz
rails-14f06c2cc1248facaa233a6d8df6cd1d9501168c.tar.bz2
rails-14f06c2cc1248facaa233a6d8df6cd1d9501168c.zip
Fixed SQL Server test #1678 [Tom Ward]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 5e1a2e66ce..e8b7d7810a 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -113,7 +113,7 @@ module ActionView
text.gsub!(/\n\n/, '</p>\0<p>') # turn two newlines into paragraph
text.gsub!(/([^\n])(\n)([^\n])/, '\1\2<br />\3') # turn single newline into <br />
- return '<p>' + text + '</p>' # wrap the first and last line in paragraphs before we're done
+ content_tag("p", text)
end
# Turns all urls and email addresses into clickable links. The +link+ parameter can limit what should be linked.