From 34a05e860d7248174ad197436cab8adf121107e7 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 6 May 2021 19:47:43 -0300 Subject: [PATCH] =?UTF-8?q?elimina=20el=20espacio=20vac=C3=ADo=20del=20con?= =?UTF-8?q?tenido?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/post/indexable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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