I use the *<$transclude>* widget to use some tiddlers as data sources for
the content rendered in other tiddlers. I need to have the line breaks and
white space from the data tiddler preserved.
I think what I need to do is use a *template* attribute in the widget, in
order to render the content from the data tiddler through some code that
will force the preservation of the original line breaks. I experimented
using some of the default templates, such as *$:/core/ui/ViewTemplate/body*,
adding those into the widget has no effect. I don't know how to go about
creating a template to preserve line breaks.
<$list filter="[all[current]has[content-tiddler]]">
<$transclude tiddler={{!!content-tiddler}}
template="$:/core/ui/ViewTemplate/body" />
</$list>
What I primarily want to do is to preserve the line breaks as they exist in
the tiddler referenced in the *content-tiddler* field, which gets output by
this method (compliments
<https://groups.google.com/forum/#!topic/tiddlywiki/sjeqVYMwE4s> to Mark
S.). Should I isntead look at manually inserting a new paragraph after
every paragraph using some advanced filter notation?
Or is there a way to do this with a template?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/2b8eba4c-4fa8-4a9d-98e9-2a016f4342e4%40googlegroups.com.