diff --git a/app/models/post/indexable.rb b/app/models/post/indexable.rb index b7b5a7fa..b887deac 100644 --- a/app/models/post/indexable.rb +++ b/app/models/post/indexable.rb @@ -54,8 +54,8 @@ class Post # @return [String] def indexable_content indexable_attributes.map do |attr| - self[attr].to_s - end.join("\n") + self[attr].to_s.remove("\n") + end.join("\n").squeeze("\n") end def indexable_attributes