[TWC] How to add space in front of sentence

140 views
Skip to first unread message

Emil Dilov

unread,
Feb 3, 2016, 4:42:52 AM2/3/16
to TiddlyWiki
How can i add space in front of a new sentence? Pressing spacebar doesn't add space.

Also, how can i add plain text inside a tiddler? If i try this, for example:

"""
blue
red
black
"""
in the output the line breaks are ignored and the words are combined in one line like this: blue red black.

Questions are about tiddlywiki classic.

Hegart Dmishiv

unread,
Feb 3, 2016, 5:58:33 AM2/3/16
to tiddl...@googlegroups.com
There are many ways that you could add space in front of a sentence in TiddlyWiki.
  1. You could begin your sentence with a colon (:) symbol, to indent the text. Add more colons (::) for additional indentation.
  2. You could use an HTML non-breaking space (or multiples of them)
  3. You could use CSS to alter the indentation, wrapping it in @@...@@ symbols (see Styles and Classes in WikiText), or defining a style sheet (see Using Stylesheets).
For forced line breaks, you can manually add an extra line between your lines, like so...

"""

blue

red

black

"""


That's just a few ideas to begin with. Hope that helps.

Hegart.

Emil Dilov

unread,
Feb 3, 2016, 6:26:09 AM2/3/16
to TiddlyWiki
Adding extra line between lines for force line breaks doesn't work on tiddlywiki classic.

Adding semicolons add space in front of the sentence but doesn't give the same control as adding space with the spacebar.

Is it possible to add text without any markup, just to copy the text from another text document, along with the text formatting, and paste it in the tiddler?

Hegart Dmishiv

unread,
Feb 3, 2016, 6:29:05 AM2/3/16
to TiddlyWiki
My apologies, I missed the [TWC] denoter in the subject of your post. I know nothing at all about TWC, and have never used it.

Scott Simmons (Secret-HQ)

unread,
Feb 3, 2016, 3:30:42 PM2/3/16
to TiddlyWiki
Hi, Emil —

You could use triple braces on their own lines to set off text as if it were code:

{{{
     
Like this.
     
With literal spaces at the beginning of lines.
}}}

This will display the text in a monospace font in an offset, colored box.  Behind the scenes, it's the HTML equivalent of invoking the style <pre> around your text.

Other than that, I think you may have to fall back on writing out spaces in HTML as &nbsp; to make sure they show up as you like — or, as Hegart suggested, creating your own custom styles, which would probably work better.  To do that, just add something like this to the tiddler StyleSheet:

.myStyle{
   margin
-left:5px;
}

Then you can wrap your text in that custom style like so:

{{myStyle{
Like this.
You won't type the literal spacing at the beginning of the line, but all this text will be indented five pixels.
}}}
Reply all
Reply to author
Forward
0 new messages