Thomas Mortagne wrote:
Hi devs,
Currently in xwiki syntax 2.0 we are using
|| title cell 1 || title cell2
| cell 1 | cell 2
for table syntax.
The problem is that with this grammar it's impossible to have empty
cells because you can't use || as it mean title cell.
Creole is using (see
http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-Tables):
|= title cell 1 |= title cell2 |
| cell 1 | cell 2 |
How does this work with headings? The syntax for headings is
= title
So if we want to put a title in a table cell, what do we do?
I propose to change our current || by |= meaning the
difference with
the Creole syntax will be just that we don't need the ending |:
|= title cell 1 |= title cell2
| cell 1 | cell 2
- we generally agreed to use Creole as much as possible
- this syntax support space
- this cell header syntax is more consistent with our header syntax
(which is the Creole one ok ;))
- I think it's more readable than the current one because it's easier
to differentiate header cell and cell especially when there is lot's
of them
So here is my +1
--
Sergiu Dumitriu
http://purl.org/net/sergiu/