On Sep 30, 2009, at 6:24 PM, Thomas Mortagne wrote:
On Wed, Sep 30, 2009 at 18:11, Vincent Massol
<vincent(a)massol.net>
wrote:
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.
No it does not change it since the syntax specification is about
parser and we don't remove or add anything to what is supported by the
parser. You can already use the group syntax any way you want.
I understand but for me the Syntax also specifies what is the
canonical way of entering elements (in other words the Syntax is what
we describe in the XWikiSyntax document for me). Right now the
canonical way of entering groups is:
(((* list1
* list2)))
Thanks
-Vincent
> However it's a small change and I agree to put
it in the XWiki Syntax
> 2.0 version.
>
> Thanks
> -Vincent