Actions
Defect #9377
open<br /> is not inserted before macro in Wiki
Defect #9377:
<br /> is not inserted before macro in Wiki
Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Resolution:
Affected version:
Description
<br /> tag is not inserted before macros in Wiki.
For example,
should be converted to
However, it is converted to
Detail and cause:
<br /> in Wiki is inserted by hard_break method in "lib/redmine/wiki_formatting/textile/formatter.rb".
This method replaces "\n" with "<br />" as follows:
It seems that "[{|]" prevents insertion of "<br />" before CSS style and in table, because CSS style in Wiki starts with "{" and cells of table are separated by "|".
Macros in Wiki also start with double "{"s, so "<br />" is not inserted before macros.
I think that hard_break method should be
to replace "\n" before macros. Environment:
- Redmine version 1.2.1
- Ruby version 1.8.7 (patch 174)
- Rails version 2.3.5
Files
Actions