How to wrap link which is too long

4 views
Skip to first unread message

Jeff

unread,
Feb 9, 2008, 6:16:18 PM2/9/08
to TiddlyWiki
Hi, anyone run into similar problem?

When a link, for example, http://aaa/bbb/ccc/ddd/eee/fff/ggg, is too
long to be displayed in one line, TW can not auto wrap it. The link
will extend out of the boundary of the tiddler.

How can I solve it?

Appreciate any suggestion.

FND

unread,
Feb 9, 2008, 6:31:35 PM2/9/08
to Tiddl...@googlegroups.com
> When a link, for example, http://aaa/bbb/ccc/ddd/eee/fff/ggg, is too
> long to be displayed in one line, TW can not auto wrap it. The link
> will extend out of the boundary of the tiddler.

Technically, it's not TiddlyWiki that can't wrap it, it's the browser
(there's no cue for it where to insert a line break).

The obvious solution would be to assign a label:
[[label|URL]]
(One could imagine a plugin that automatically assigns a label to
excessively long URLs, shortening the URL by leaving out the middle
portion: "http://aaa/[...]/ggg".)

Alternatively, try adding this to your StyleSheet:
.tiddler {
overflow: auto;
}
This will display a horizontal scrollbar if the contents extend beyond
the respective container's width.
Unfortunately, this doesn't quite work on Internet Explorer 6.0.

HTH.


-- F.

Jeff

unread,
Feb 10, 2008, 11:21:32 AM2/10/08
to TiddlyWiki
OK, understand now. Thank you!

> Technically, it's not TiddlyWiki that can't wrap it, it's the browser
> (there's no cue for it where to insert a line break).
>
> The obvious solution would be to assign a label:
> [[label|URL]]
> (One could imagine a plugin that automatically assigns a label to
> excessively long URLs, shortening the URL by leaving out the middle
> portion: "http://aaa/[...]/ggg".)

Good idea!

> Alternatively, try adding this to your StyleSheet:
> .tiddler {
> overflow: auto;
> }

I'll try this.

FND

unread,
Feb 10, 2008, 4:08:12 PM2/10/08
to Tiddl...@googlegroups.com
>> (One could imagine a plugin that automatically assigns a label to
>> excessively long URLs, shortening the URL by leaving out the middle
>> portion: "http://aaa/[...]/ggg".)
>
> Good idea!

I had to give it a shot; see this thread (ShortURLPlugin):
http://tinyurl.com/yrm7c6
(http://groups.google.com/group/TiddlyWiki/browse_thread/thread/e356a266c2739817)


-- F.

Reply all
Reply to author
Forward
0 new messages