On Wed, Nov 26, 2008 at 1:53 PM, Vincent Massol <[email protected]> wrote:
On Nov 26, 2008, at 8:28 AM, Asiri Rathnayake wrote:
Hi,
On Tue, Nov 25, 2008 at 9:59 PM, Anca Paula Luca <[email protected]>wrote:
Vincent Massol wrote:
On Nov 25, 2008, at 2:03 PM, Vincent Massol wrote:
Hi,
Do we want to honor whitespaces in table cells or not?
The main advantage of trimming them is to get aligned cell symbols.
See http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-Tables
Right now we're honoring whitespaces (they are significant).
If we want to be consistent with normal wiki text we should honor them since we're honoring spaces in wiki text. However we just need to agree that it won't be possible to get nicely aligned cell delimiters then.
WDYT?
One consideration. Right now you have to write the following:
|cell1|cell2|cell3
this is not very readable IMO compared to:
| cell1 | cell2 | cell3
However right now since whitspaces are honored if you write the latter you'll get:
<td> cell1 </td> in XHTML.
Is there any possibility to trim spaces only around the table delimiters and honor only the spaces inside the text in the tables?
I'm leaning towards trimming the surrounding white spaces. One is that it allows us to align cell elements and the second is they doesn't represent any valuable information. I mean regardless of the existence of surrounding white spaces, the output will look the same.
No, and that's the point. Currently whitespaces are significant and are taken into account and thus represented.
Ok, I tried it and it has an effect only when the output is something like this : <table border="1"><tr><td> hi </td></tr></table> OR <table border="1"><tr><td style="white-space: pre-wrap"> hi </td></tr></table> And not when it's like : <table border="1"><tr><td> hi </td></tr></table> So it makes sense to respect white spaces (+1). But whether to use or styles is a question. styles seems to be a cleaner way as suggested by sergiu. Thanks. - Asiri
-Vincent
WDYT ?
Thanks.
- Asiri
Otherwise, I'm pretty undecided, since both sound good (for various reasons) I'd say to leave it like it is.
Happy coding, Anca Luca
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs