From 3e3cf4d9936b8887b64d2768d7b661b61e48c2e1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 14 Oct 2019 18:11:21 +0000 Subject: [PATCH] code layout clean up ApplicationHelper#parse_wiki_links git-svn-id: http://svn.redmine.org/redmine/trunk@18667 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 223083d6f..121de247f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -899,8 +899,9 @@ module ApplicationHelper # check if page exists wiki_page = link_project.wiki.find_page(page) url = - if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) || - obj.is_a?(WikiContent::Version)) && obj.page == wiki_page + if anchor.present? && wiki_page.present? && + (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) && + obj.page == wiki_page "##{anchor}" else case options[:wiki_links] -- 2.39.5