diff --git a/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb b/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb index b91c2b0..e30eb63 100644 --- a/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb +++ b/plugins/comment_paragraph/lib/comment_paragraph_plugin.rb @@ -53,8 +53,19 @@ class CommentParagraphPlugin < Noosfero::Plugin doc = Hpricot(@article.body) paragraphs = doc.search("/*").each do |paragraph| - parsed_paragraphs << (paragraph.to_html =~ /^\n|\r\n|
\W<\/p>$|(.*)paragraph_comment_spacer(.*)|
\r\n" + "
" end end -- libgit2 0.21.2