- +

<%= @item[:content_for_title].nil? ? @item[:title] : @item[:content_for_title] %>

<% unless @item[:subtitle].nil? and @item[:content_for_subtitle].nil? %>

diff --git a/lib/repair_html.rb b/lib/repair_html.rb index ab2a71e..e2608de 100644 --- a/lib/repair_html.rb +++ b/lib/repair_html.rb @@ -26,7 +26,7 @@ def repair_html( html, debug=false ) end else depth-=1 - if (not debug) and (depth <0) + if debug and (depth <0) puts 'ERROR repair_html: ' puts 'HTML: ' + html puts '---' @@ -40,7 +40,7 @@ def repair_html( html, debug=false ) end res=html.sub(/<[^>]*$/m,'') depth -= 1 - if (depth < 0) + if debug and (depth < 0) parents=[] depth=0 html.scan( %r{<(/?)(\w*)[^>]*(/?)>} ).each do |m| diff --git a/multi/blog.erb b/multi/blog.erb index c056dbf..a966ded 100644 --- a/multi/blog.erb +++ b/multi/blog.erb @@ -36,29 +36,24 @@ fr: Les <%= number_of_articles %> derniers articles