Line Breaks in Table Cell

1,116 views
Skip to first unread message

Shayne

unread,
Apr 25, 2007, 1:03:56 AM4/25/07
to TiddlyWiki
Somewhere I saw a plugin/macro that allowed line breaks inside a table
cell to be wikified without having to do the following:

|Name|Address|
|John|Sydney<html><br></html>New South Wales<html><br></
html>Australia|

>From memory it used css to do this so that the following would format
with the line breaks inside a table cell:

|Name|Address|
|John|Sydney
New South Wales
Australia|

Wikified output (something) like this:

--------------------------------------------
Name | Address
--------------------------------------------
John | Sydney
| New South Wales
| Australia
--------------------------------------------

My Google-fu has not been able to turn up this tiddlywiki extension
Anybody seen this?
Thanks

Eric Shulman

unread,
Apr 25, 2007, 1:52:25 AM4/25/07
to TiddlyWiki
> Somewhere I saw a plugin/macro that allowed line breaks inside a table
> cell to be wikified without having to do the following:
>
> |Name|Address|
> |John|Sydney<html><br></html>New South Wales<html><br></
> html>Australia|

First, you can just write "<br>"... TW has a built-in formatter that
allows <br> without having to wrap it inside <html>...</html>, so you
example becomes just:

|Name|Address|
|John|Sydney<br>New South Wales<br>Australia|

BUT... another solution can be found here:
http://www.TiddlyTools.com/#CoreTweaks
Scroll to the end of the tiddler, and have a look at the last tweak.
It adds a little bit of pre-processing to the core's wikify()
rendering 'engine', so that any occurences of double-backslash-newline
are replaced with "<br>" just before processing. With this tweak
applied, your example can be written this way:

|Name|Address|
|John|Sydney\\
New South Wales\\
Australia|

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

MorrisGray

unread,
Apr 25, 2007, 8:09:02 PM4/25/07
to TiddlyWiki
There is a plugin that allows you to put almost anything in a table
from
http://tiddlywiki.abego-software.de/#PartTiddlerPlugin including other
tiddlers, parts of tiddlers bullet points and etc.

Morris

Reply all
Reply to author
Forward
0 new messages