diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb index d2591200..cd6d9125 100644 --- a/lib/parsers/parser_common.rb +++ b/lib/parsers/parser_common.rb @@ -150,17 +150,20 @@ module ParserCommon ancestors = Page.find(page.id).ancestors_and_self rescue nil ancestors.delete_at(0) res = '' - if ancestors - res << "
" - res << "
" end fragment = Nokogiri::HTML::DocumentFragment.new(body, res) breadcrumb.swap(fragment)