From f36bcb8801cbed583d6c91e811c8e43e70d7956c Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 5 Feb 2013 18:38:09 +0800 Subject: [PATCH] Put missing changes for breadcrumb in page edit --- lib/parsers/parser_common.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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)