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

