diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 09:04:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 09:04:46 +0000 |
commit | 741aa901b050cd003dca9e725e98d879d83ae7de (patch) | |
tree | de677690717b25cffda1666e184ad3e66e5a28bd /lib/redmine/wiki_formatting/macros.rb | |
parent | 238f344eef0357a6bf5a002fa4bbe217604618a1 (diff) | |
download | redmine-741aa901b050cd003dca9e725e98d879d83ae7de.tar.gz redmine-741aa901b050cd003dca9e725e98d879d83ae7de.zip |
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
Diffstat (limited to 'lib/redmine/wiki_formatting/macros.rb')
-rw-r--r-- | lib/redmine/wiki_formatting/macros.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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.") ) |