On Sep 30, 2009, at 5:48 PM, Thomas Mortagne wrote:
Hi devs,
I would like to modify the xwiki/2.0 renderer to print the group with
a trailing and ending new line:
1.A
(((
* list1
* list 2
)))
instead of
1.B
(((* list1
* list 2)))
for example but it also mean:
2.A
| (((
* list
))) | second cell
instead of
2.B
| (((* list with one item)))
Here are my arguments:
* i tough of that idea at first because it's not very easy/clean to
support well the escaping of an ending ) before a ending group in an
events based renderer, the problem is that you need to bufferize at
least 4 events (if not more) to know when you print the ) character
that it will be followed by end group syntax when printed. For example
it can be the last character of paragraph in the last cell or last row
of a table before the end of the group
* i prefer to "break" 2.A done on purpose than 1.A done on purpose
since it's not possible to support both currently
* even with 2.A it's more readable to have it in its own line IMO
Here is my +1
+1
Note that technically speaking this means changing the XWiki Syntax
2.0 specification... ;)
Thus technically it should be in XWiki Syntax 2.1.
However it's a small change and I agree to put it in the XWiki Syntax
2.0 version.
Thanks
-Vincent