Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.2 RC 2
-
None
-
Unit
-
Medium
-
Easy
-
Description
Right now if you write:
{{velocity}} ## velocity code here {{/velocity}}
and edit this macro in WYSIWYG mode you'll get:
## velocity code here
in the macro content text area. Notice the first and last empty lines. They are used to format the wiki code and shouldn't be taken as part of the macro content. In order to be consistent with the normalized form of standalone macros we should hide the first and last new line when editing standalone macros and generate them if not present when saving the macro.
Attachments
Issue Links
- is duplicated by
-
XWIKI-4919 Empty html macro causes parser to break.
- Closed