Issue Details (XML | Word | Printable)

Key: XWIKI-527
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Phung Hai Nam
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

WYSIWYG editor does not recognize velocity comments

Created: 12/Dec/06 21:20   Updated: 02/Jan/07 09:21
Component/s: Editor - TinyMCE WYSIWYG
Affects Version/s: None
Fix Version/s: 1.0 B2

Date of First Response: 22/Dec/06 08:00
Resolution Date: 02/Jan/07 09:21


 Description  « Hide
The WYSIWYG editor should not display velocity comments (maybe put a "hidden content in here" mark), or should display them using a special style. Right now, it treats them as normal inline content.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Phung Hai Nam added a comment - 22/Dec/06 08:00
problems are :

how to distinguish between the normal contents and velocity comments

have you got any ideas for this pb ??


Sergiu Dumitriu added a comment - 22/Dec/06 11:21
Velocity comments come in two forms:
  • One line comments, that start with ## and last until the current line ends
  • Multiple lines comments, that are delimited by #* and *#

So, whenever you encounter ## on a line, the portion of text until that line ends is a comments.

Whenever you encounter #* on a line, until you find a *# in the rest of the text, that is also a comment.

The problem is that the wiki syntax for lists also uses # and *, so the regular expressions for comments and lists must be prioritized.


Phung Hai Nam added a comment - 02/Jan/07 09:21
This bug has been fixed !