The "item" variable is a tiddler in question iterator because we're in a 
listWidget loop.  Above this, I"m using similar code to output fields, and 
this one is for me to output the stuff in the text field.  And it only 
shows it in the view when it has content.  That's working well.

But, with some tiddlers, the text content has some lines of text that are 
double-spaced.  And outputting the text like below was not honoring the 
returns (e.g. an emtpy line between two lines of text), and perhaps even 
not honoring line breaks at all. 

<$list filter="[<item>has[text]]" >
<dd class="twText">
<$view tiddler=<<item>> field="text" />
</dd>
</$list>

So I tried using the format attribute with several different values found 
in the documentation <https://tiddlywiki.com/static/ViewWidget.html>.  None 
of them worked for what I'm trying to do.

When I'm viewing the tiddler individually, the hard returns are preserved.  
But when I bring in the text field into the template tiddler inside a loop, 
all the lines are concatenated.

I tried using this syntax instead, but it displayed the same concatenated 
lines....

{{!!text}}

Practical example: my text in the tiddler text body looks like this:
Some text on the first line.

Some text on the third line.

And it displays properly when viewing the individual tiddler.  But when I 
output the text field's content in the template tiddler, it concatenates 
the lines, like so...

Some text on the first line. Some text on the third line.

Now, I think if I were to put <br> tags in the individual tiddler, it would 
all work out.  But surely including text in this way is so often done that 
I wouldn't need to, eh?

Thanks so much!

-- 
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/65f620e0-6744-4043-b167-e8c3b2d92d37%40googlegroups.com.

Reply via email to