From: Toshi MARUYAMA Date: Sat, 23 Nov 2019 09:04:46 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in lib/redmine/wiki_format... X-Git-Tag: 4.2.0~1448 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=741aa901b050cd003dca9e725e98d879d83ae7de;p=redmine.git cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in lib/redmine/wiki_formatting/macros.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19192 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb index d6463d2b4..53276834f 100644 --- a/lib/redmine/wiki_formatting/macros.rb +++ b/lib/redmine/wiki_formatting/macros.rb @@ -172,7 +172,8 @@ module Redmine # Builtin macros desc "Sample macro." macro :hello_world do |obj, args, text| - h("Hello world! Object: #{obj.class.name}, " + + h( + "Hello world! Object: #{obj.class.name}, " + (args.empty? ? "Called with no argument" : "Arguments: #{args.join(', ')}") + " and " + (text.present? ? "a #{text.size} bytes long block of text." : "no block of text.") )