diff --git a/lib/redmine/wiki_formatting/copypre_scrubber.rb b/lib/redmine/wiki_formatting/copypre_scrubber.rb index 2afd02823..60810237e 100644 --- a/lib/redmine/wiki_formatting/copypre_scrubber.rb +++ b/lib/redmine/wiki_formatting/copypre_scrubber.rb @@ -26,7 +26,7 @@ module Redmine icon = ApplicationController.helpers.sprite_icon('copy-pre-content', size: 18) button_copy = ApplicationController.helpers.l(:button_copy) html = '' + icon + '' - @button ||= Nokogiri::HTML5.fragment(html).children.first + Nokogiri::HTML5.fragment(html).children.first end end end