summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-03 14:55:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-03 14:55:09 +0000
commitfc3af794d27f530a280c6edeb8405c4878be9215 (patch)
tree1c3041aec7020b69c9eb877e63c57b3ff47d50e7 /lib
parent52d8b5549e0f15185703e24e15785e6ed5f5dbae (diff)
downloadredmine-fc3af794d27f530a280c6edeb8405c4878be9215.tar.gz
redmine-fc3af794d27f530a280c6edeb8405c4878be9215.zip
add empty line after guard clause to lib/redmine/wiki_formatting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index fb7799689..ec62f2781 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -34,6 +34,7 @@ module Redmine
options = args.last.is_a?(Hash) ? args.pop : {}
name = name.to_s
raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name]
+
formatter, helper, parser =
if args.any?
args
@@ -41,6 +42,7 @@ module Redmine
%w(Formatter Helper HtmlParser).map {|m| "Redmine::WikiFormatting::#{name.classify}::#{m}".constantize rescue nil}
end
raise "A formatter class is required" if formatter.nil?
+
@@formatters[name] = {
:formatter => formatter,
:helper => helper,