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






_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to