From b675fe3509c515291c915cc3f10e074ff47ac1bc Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 31 Aug 2010 12:35:10 -0300 Subject: [PATCH] Removing the p tag from Article#first_paragraph --- app/models/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index 9edf70b..adc97b4 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -340,7 +340,7 @@ class Article < ActiveRecord::Base end def first_paragraph - to_html =~ /(.*<\/p>)/ + to_html =~ /

(.*)<\/p>/ $1 || '' end -- libgit2 0.21.2