From a4a71f2f65d8d50fa7bd8980c3126ecb0641a225 Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Sat, 6 Jun 2009 16:55:29 -0300 Subject: [PATCH] ActionItem1074: a br tag with clear:both was appended to each post --- app/helpers/blog_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/blog_helper.rb b/app/helpers/blog_helper.rb index 583cf7e..394d8ea 100644 --- a/app/helpers/blog_helper.rb +++ b/app/helpers/blog_helper.rb @@ -29,7 +29,7 @@ module BlogHelper css_add << 'last' if i == (artic_len-1) css_add << 'not-published' if !art.published? content << content_tag('div', - display_post(art), + display_post(art) + '
', :class => 'blog-post ' + css_add.join(' '), :id => "post-#{art.id}") end @@ -38,7 +38,9 @@ module BlogHelper end def display_post(article) - article_title(article) + content_tag('p', article.to_html) + html = article.to_html + html = content_tag('p', html) if ! html.include?('

') + article_title(article) + html end end -- libgit2 0.21.2