CSS no line breaks

339 views
Skip to first unread message

Eris of StrongHold [STRM]

unread,
Dec 2, 2008, 11:27:34 AM12/2/08
to TiddlyWiki
I know that {{{ }}} will give me text with no line breaks, where
should I start to replicate that "but" include tiddler style IE,
header, link, bold, etc.

I am playing with FET, trying to create some reports using
tiddler.contents.

Thanks,

Mike

FND

unread,
Dec 3, 2008, 12:15:35 PM12/3/08
to Tiddl...@googlegroups.com
> I know that {{{ }}} will give me text with no line breaks, where
> should I start to replicate that "but" include tiddler style IE,
> header, link, bold, etc.

I'm afraid I don't understand the question.

> I am playing with FET, trying to create some reports using
> tiddler.contents.

I might be mistaken, but I assume you mean tiddler.text?


-- F.

Eris of StrongHold [STRM]

unread,
Dec 11, 2008, 6:35:43 PM12/11/08
to TiddlyWiki
I am sorry, yes I meant tiddler.text, The tiddlers I am listing have
line breaks, TiddlyLinks, and formatting. I would like an output
similar to wrapping in {{{ }}} but I would like to retain my links and
formatting. I am guessing it is a simple CSS fix, but I am not having
much luck. (white-space: no-wrap maybe??)

Thx,
Mike

FND

unread,
Dec 12, 2008, 4:52:00 AM12/12/08
to Tiddl...@googlegroups.com
> The tiddlers I am listing have
> line breaks, TiddlyLinks, and formatting. I would like an output
> similar to wrapping in {{{ }}} but I would like to retain my links and
> formatting.

As you've guessed, the white-space CSS property is your best bet.
So use a custom class:
{{foo{
lorem ipsum dolor sit amet
}}}
Then add this to your StyleSheet:
.foo {
white-space: nowrap;
}
(you might also try "white-space: pre;")

HTH.


-- F.

Eris of StrongHold [STRM]

unread,
Dec 27, 2008, 12:02:03 PM12/27/08
to TiddlyWiki
No luck, but I may not be vocalizing what I am trying to do correctly.
I will try to post an example when I get a little more time . . .

Thx,
Mike

Eris of StrongHold [STRM]

unread,
Dec 27, 2008, 3:09:07 PM12/27/08
to TiddlyWiki
Maybe this is a better example:
http://www.strm.us/Private/fETformatting

Happy Holidays !!!
Mike

On Dec 27, 11:02 am, "Eris of StrongHold [STRM]" <eris...@gmail.com>
wrote:

FND

unread,
Dec 28, 2008, 3:01:54 PM12/28/08
to Tiddl...@googlegroups.com
> Maybe this is a better example:
> http://www.strm.us/Private/fETformatting

It seems like TiddlyWiki's code/monospace formatter is "swallowing" line
breaks there - that might actually be considered a bug... (Not entirely
sure at this point.)

As for your issue, you might try the following:
.foo * { display: inline; }
.foo br { display: none; }
However, that will make line breaks disappear altogether, without
inserting spaces as you might expect.


-- F.

Eris of StrongHold [STRM]

unread,
Dec 29, 2008, 12:53:28 PM12/29/08
to TiddlyWiki
That is very close to what I was looking for :D
Too bad you can't turn <br> into a nbsp; . . . that fix the missing
spaces you noted.

I updated the example with your suggestion, any other ideas?
http://www.strm.us/Private/fETformatting

Thx !!
Mike
Reply all
Reply to author
Forward
0 new messages