Patch #5919 ยป wiki-macro-strip.diff
lib/redmine/wiki_formatting.rb | ||
---|---|---|
85 | 85 |
def execute_macros(text, macros_runner) |
86 | 86 |
text.gsub!(MACROS_RE) do |
87 | 87 |
esc, all, macro = $1, $2, $3.downcase |
88 |
args = ($5 || '').split(',').each(&:strip)
|
|
88 |
args = ($5 || '').split(',').map(&:strip)
|
|
89 | 89 |
if esc.nil? |
90 | 90 |
begin |
91 | 91 |
macros_runner.call(macro, args) |