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