From eb99d628c30482d66ec221da38b9877d1fe3d574 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 3 Sep 2009 22:26:21 +0200 Subject: took almost an hour to find the reason for the invalid html! anyway - fixed now! --- app/helpers/content_helper.rb | 2 +- app/views/custom/page_templates/public/no_date_and_author.html.erb | 2 +- app/views/custom/page_templates/public/standard_template.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 8b16462..11cfbc7 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -63,7 +63,7 @@ module ContentHelper options = {} begin - if content =~ /]*)>/ + if content =~ /

]*)><\/p>/ tag = $~.to_s matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) diff --git a/app/views/custom/page_templates/public/no_date_and_author.html.erb b/app/views/custom/page_templates/public/no_date_and_author.html.erb index 32eb64a..27cc1c0 100644 --- a/app/views/custom/page_templates/public/no_date_and_author.html.erb +++ b/app/views/custom/page_templates/public/no_date_and_author.html.erb @@ -6,4 +6,4 @@ <%= aggregate?(@page.body) %> -

<%= will_paginate(@content_collection) if @content_collection %>

\ No newline at end of file +<%= will_paginate(@content_collection) if @content_collection %> \ No newline at end of file diff --git a/app/views/custom/page_templates/public/standard_template.html.erb b/app/views/custom/page_templates/public/standard_template.html.erb index d321472..7893fdd 100644 --- a/app/views/custom/page_templates/public/standard_template.html.erb +++ b/app/views/custom/page_templates/public/standard_template.html.erb @@ -7,4 +7,4 @@ <%= aggregate?(@page.body) %> -

<%= will_paginate(@content_collection) if @content_collection %>

\ No newline at end of file +<%= will_paginate(@content_collection) if @content_collection %> \ No newline at end of file -- cgit v1.3