aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-01-07 15:08:59 +0000
committerfrancis <francis>2008-01-07 15:08:59 +0000
commitb5dc11b5f2089b1c9b94414081e0c03d22de1e3d (patch)
tree65452d01f40ab1d5ea28f0e18541b3d424545d3b
parent4dca0084f39051853bb95dab6b80863b107099ca (diff)
Slight spacing tweaks of folded quotes.
-rw-r--r--app/models/incoming_message.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index a00e3df08..427059b15 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -20,7 +20,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: incoming_message.rb,v 1.24 2008-01-04 11:19:18 francis Exp $
+# $Id: incoming_message.rb,v 1.25 2008-01-07 15:08:59 francis Exp $
class IncomingMessage < ActiveRecord::Base
belongs_to :info_request
@@ -143,11 +143,11 @@ class IncomingMessage < ActiveRecord::Base
text = CGI.escapeHTML(text)
text = MySociety::Format.make_clickable(text, :contract => 1)
if collapse_quoted_sections
- text = text.gsub(/(BEGIN_QUOTED(.+?)END_QUOTED\s*)+/m, '<a href="?unfold=1">show quoted sections</a>')
+ text = text.gsub(/(BEGIN_QUOTED(.+?)END_QUOTED\s*)+/m, '<a href="?unfold=1">show quoted sections</a>' + "\n")
else
if text.include?('BEGIN_QUOTED')
text = text.gsub(/BEGIN_QUOTED(.+?)END_QUOTED/m, '\1')
- text = text + '<a href="?">hide quoted sections</a>'
+ text = text + "\n" + '<a href="?">hide quoted sections</a>'
end
end
text = text.gsub(/\n/, '<br>')