On Thursday, October 31, 2013 11:15:01 AM UTC-7, [email protected] 
wrote:
>
> You say 
> [...] slices cannot contain multi-line values. 
>
> But does the data for a slice have to be on a line by itself? 
>

Slices can be defined using "Name: value" or "|Name|Value|" syntax.  When 
using the first sytnax, any whitespace (including a newline) that occurs 
between the ":" and the start of the value is ignored.  The end of the 
value is determined by the next newline character.  Thus, you can write 
either:
   Name: value
or
   Name:
      value

When using the 2nd method, the value occurs in between the two "|", 
excluding leading/trailing whitespace.  Both format are limited to 
single-line values.

To define a named value that includes newlines, you need to use the 
"section" syntax, which starts with a heading (e.g, "!NameOfSection").  The 
value of a section is defined by the content that follows the heading, up 
to the next heading (or the end of the tiddler if no more heading are 
found).  Like this:

!Name
value
on
several
lines
!end

!OtherName
Another
multi-line 
value
!end

Note that the "!end" marker is not included in the section data, and is 
only used to ensure that the section content is properly delimited.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to