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 << "
"
- ancestors.each do |node|
- res << "- "
- res << "#{node.title}"
+ res << "
"
+ ancestors.each_with_index do |node, i|
+ last = i == ancestors.size-1
+ res << "- "
+ if last
+ res << node.title
+ else
+ res << "#{node.title}"
+ res << "/"
+ end
res << "
"
end
res << "
"
- res << "
"
end
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
breadcrumb.swap(fragment)