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
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs