^indent( data )^

Tinderbox Icon

^indent( data )^

Exports the data as a string (sequence of characters) for each ancestor of the currently exported note.

^indent^

Exports a tab character for each ancestor of the currently exported note except root level (all levels up to v3.0.6), i.e. a tab is the default indent if no data parameter is supplied.

For web use, tabs are ignored for white space so consider using one or more " " space HTML entities as the data value.

This note is at Outline Depth 4 in its source TBX file, so ^indent(string)^ will emit the string value 3 times (4 times up to v3.0.6). Thus, if we use a hyphen as the indent's string value, you see:

----Text indented with ^indent(-)^

More examples:

    Text indented with ^indent( )^

Text indented with ^indent^ (i.e. a tab)

Note how in the HTML output the third example isn't visually indented as tabs aren't interpreted as white space mark-up in HTML. If you view the HTML source for the page, you'll see example #2 has output 4 " " non-breaking space HTML entities. For example #3, you'll see 4 tabs have been output; depending on the program viewing the source you may be able to 'see' these as tabs by moving the cursor through the source code with the arrow keys - you'll see it jump from tab to tab.

Up to v3.0.6, root level notes were given a single indent. From v3.5.0, root level notes are not indented.


Up: Item-based
Previous: ^include( item[, template] )^  Next: ^isDescendedFrom( item )^ 

[Last updated: 3 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox