Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to What is the syntax for indentation?

Re: What is the syntax for indentation?

Hi,

1) The docs describe an indent method that is really more of a hack - it relies on definition listQuestion construction and assumes that the definition will be indented. However, the Bootstrap CSS framework that Tiki is using now doesn't indent the definition, so the indent hack broke.

2) The wiki edit page popup help says:

Indentation

+, ++ Creates an indentation for each plus (useful in list to continue at the same level)


But this also seems to not work, in Tiki 18 at least, where I'm testing it, or maybe only works inside a list.

3) This next method isn't so simple but works. It uses the HTML plugin whose content is the HTML encoding for a non-breaking space:

This line is not indented.
  This line begins with one non-breaking space.
    This line begins with three non-breaking spaces.

which is produced by:

Copy to clipboard
{HTML()}  {HTML}This line begins with one non-breaking space. {HTML()}    {HTML}This line begins with three non-breaking spaces.

(In case the syntax gets parsed instead of displayed, it is "& n b s p ;" without the spaces.)

4) Or you can make a borderless, no-background box that has padding (so you get an indent) by using the Box plugin with these parameters:

Copy to clipboard
{BOX(bg="transparent" align="left" style="border-color: transparent")}This is the content of the box.{BOX}


A borderless, no-background box:

This is the content of the box.


-- Gary