[xwiki-devs] [VOTE] Do we keep "\\" in xwiki syntax 2.0?
Hi, We need to decide if we want to keep the "\\" syntax since now newlines are significant. There are two use cases I can see: 1) If we want to allow users to enter empty paragraphs (using \\): some para \\ still the same para another para 2) Using \\ in scripts For example: #set ($var = "hello\\world") $var note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world") So here's my +1 to keep "\\" syntax. Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
+0 Jerome. Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
If the rational is "We escape the new line" I would prefer to use "~" instean of "\\" since our escaping character is "~" now.
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Jan 7, 2009, at 5:33 PM, Thomas Mortagne wrote:
On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
If the rational is "We escape the new line" I would prefer to use "~" instean of "\\" since our escaping character is "~" now.
We need one way to handle 1) and 2) which is a way to force a line break. Having 2 solutions is complex and not intuitive. In addition it's creole-compatible.
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
On Wed, Jan 7, 2009 at 5:45 PM, Vincent Massol <[email protected]> wrote:
On Jan 7, 2009, at 5:33 PM, Thomas Mortagne wrote:
On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
If the rational is "We escape the new line" I would prefer to use "~" instean of "\\" since our escaping character is "~" now.
We need one way to handle 1) and 2) which is a way to force a line break. Having 2 solutions is complex and not intuitive.
Ok so it's not a new line escaping it's about adding a line break between two new lines.
In addition it's creole-compatible.
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Wed, Jan 7, 2009 at 5:48 PM, Thomas Mortagne <[email protected]> wrote:
On Wed, Jan 7, 2009 at 5:45 PM, Vincent Massol <[email protected]> wrote:
On Jan 7, 2009, at 5:33 PM, Thomas Mortagne wrote:
On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
If the rational is "We escape the new line" I would prefer to use "~" instean of "\\" since our escaping character is "~" now.
We need one way to handle 1) and 2) which is a way to force a line break. Having 2 solutions is complex and not intuitive.
Ok so it's not a new line escaping it's about adding a line break between two new lines.
In addition it's creole-compatible.
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
By the way isn't this render hello\world ? (because the first \ escape the second in the string literral ?)
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
Anyway i'm +1 for having a way to have more than one linebreak in the same paragraph, just wanted to be sure \\ is the right one. On Wed, Jan 7, 2009 at 5:50 PM, Thomas Mortagne <[email protected]> wrote:
On Wed, Jan 7, 2009 at 5:48 PM, Thomas Mortagne <[email protected]> wrote:
On Wed, Jan 7, 2009 at 5:45 PM, Vincent Massol <[email protected]> wrote:
On Jan 7, 2009, at 5:33 PM, Thomas Mortagne wrote:
On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
If the rational is "We escape the new line" I would prefer to use "~" instean of "\\" since our escaping character is "~" now.
We need one way to handle 1) and 2) which is a way to force a line break. Having 2 solutions is complex and not intuitive.
Ok so it's not a new line escaping it's about adding a line break between two new lines.
In addition it's creole-compatible.
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
By the way isn't this render hello\world ? (because the first \ escape the second in the string literral ?)
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
+1 for a way to represent empty lines inside the same paragraph because a WYSIWYG user can do the following: * write a paragraph with 3 lines line1 line2 line3 * delete the text on the middle line line1 line3 * at this point he can write on the middle line having the same style applied as for the previous and the following lines (because he's writing inside the same paragraph). The WYSIWYG cannot delete the middle line because the user might want to write in between. * the user saves and edits again. Currently the result is 2 paragraphs: line1 --- he cannot edit here because this is the space between paragraphs --- line3 which is not what the user had initially. Thanks, Marius. Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
I'd rather use a different thing, since \\ causes problems, and it can't be used as a java escape. -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Jan 7, 2009, at 5:57 PM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
I'd rather use a different thing, since \\ causes problems, and it can't be used as a java escape.
If we want to be creole compatible then \\ is the right choice. I do agree it has some issues with velocity which is also using \ as the escape symbol and java. BTW I've tried and the following works for some reason I'm not sure: {{velocity}} #set ($var = "hello\\world") $var {{/velocity}} So the questions are: 1) do we value creole compatibility more or less than the ability to more clearly separate between velocity/java escapes? 2) if the answer to 1) is that we value creole compatiblity less then what symbol do we use? There doesn't seem to be a lot of known alternatives: http://www.wikicreole.org/wiki/ParagraphsAndLineBreaksReasoning I'd still like to ensure we cannot use "\\" since this is the most logical choice and that it works for some reason when I tried it (need to find why). BTW some loooong discussion (that I haven't read I admit) on blog style line breaks vs wiki style line breaks: http://www.wikicreole.org/wiki/Talk.ChangeLinebreakMarkupProposal Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
+1 for keeping \\, I think we need it and I'm in favor of staying close to creole when it's possible. JV. On Wed, Jan 7, 2009 at 4:59 PM, Vincent Massol <[email protected]> wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Other related question: Does the following generate 5 NL or 3 NL? Hello \\ \\ world my +1 for 5 NLs meaning that the user would have to write "Hello\\\ \world" if we he wants 3 NLs only. -Vincent On Jan 7, 2009, at 4:59 PM, Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
It could seems a bit weird that this generates 5 NL but, since line breaks are significant and \\ is a syntax element and not an escape sequence, +1 for 5 NLs. JV. On Thu, Jan 8, 2009 at 3:20 PM, Vincent Massol <[email protected]> wrote:
Other related question: Does the following generate 5 NL or 3 NL?
Hello \\ \\ world
my +1 for 5 NLs meaning that the user would have to write "Hello\\\ \world" if we he wants 3 NLs only.
-Vincent
On Jan 7, 2009, at 4:59 PM, Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Vincent Massol wrote:
Other related question: Does the following generate 5 NL or 3 NL?
Hello \\ \\ world
my +1 for 5 NLs meaning that the user would have to write "Hello\\\ \world" if we he wants 3 NLs only.
+1 for 5 NLs
-Vincent
On Jan 7, 2009, at 4:59 PM, Vincent Massol wrote:
Hi,
We need to decide if we want to keep the "\\" syntax since now newlines are significant.
There are two use cases I can see:
1) If we want to allow users to enter empty paragraphs (using \\):
some para \\ still the same para
another para
2) Using \\ in scripts
For example:
#set ($var = "hello\\world") $var
note that a possibility is to use the following which is less nice IMO: #set ($var = "hello${xwiki.nl}world")
So here's my +1 to keep "\\" syntax.
Thanks
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (6)
-
Jean-Vincent Drean -
Jerome Velociter -
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol