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. Currently, the text from the data tiddler is displayed, but all the paragraphs are run together.
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 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?