Project

General

Profile

Actions

Defect #12139

closed

Macros not working if there is a newline (Redmine 2.1.2)

Added by Franco Miceli over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Macros won't work unless it is written on one line. For example:

{{macro_list()}}

Will work but:
{{macro_list(
)}}

Wont.

Working on 1.2.X thru 1.4.X Not working on 2.1.2.

This is important for macros that let you write on other languages and then translate it to wiki.

Actions #1

Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Macro processing was refactored in 2.1 in order to improve this use case (eg. additional text processor). You can now pass a block of text that won't be processed by the core text formatter.

Please have a look at the documentation here: source:/trunk/lib/redmine/wiki_formatting/macros.rb@10402#L80

Actions #2

Updated by Jean-Philippe Lang over 12 years ago

I've started to document it in the wiki: RedmineMacros.

Actions #3

Updated by Franco Miceli over 12 years ago

Great info. I will check it out.

Thanks for all your help. Redmine Rocks!

Actions

Also available in: Atom PDF