From c4fb48bbcdb03c88689c0f0318272f5f5c0e3a09 Mon Sep 17 00:00:00 2001 From: Marcelo JĂșnior Date: Thu, 23 Oct 2014 17:15:55 -0300 Subject: [PATCH] comment_paragraph: minor fixes --- plugins/comment_paragraph/lib/comment_paragraph_plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb b/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb index c0c2b8c..b91c2b0 100644 --- a/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb +++ b/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb @@ -52,8 +52,8 @@ class CommentParagraphPlugin < Noosfero::Plugin paragraph_id = 0 doc = Hpricot(@article.body) - paragraphs = doc.search("/[\r\n]").each do |paragraph| - parsed_paragraphs << (paragraph.to_html =~ /(.*)paragraph_comment_spacer(.*)|\W<\/p>$|(.*)paragraph_comment_spacer(.*)|#{paragraph_content}\r\n" + - "

\r\n" + "

 

\r\n" end end -- libgit2 0.21.2