How do I get rid of line feed spacing during listing?

93 views
Skip to first unread message

Mark S.

unread,
Jun 20, 2016, 10:26:55 AM6/20/16
to TiddlyWiki
I have a listing code like this:

<$set name=title value={{!!title}}><$list filter="[prefix<pfx>sort[]]" ><$transclude mode=inline/></$list>
</$set>

Each tiddler contains one line of verse, with no white space or carriage return on the end. Yet I get results spaced out like this:

ROSALIND:



Dear Celia, I show more mirth than I am mistress of;


and would you yet I were merrier? Unless you could


teach me to forget a banished father, you must not


learn me how to remember any extraordinary pleasure.


How do I get rid of the unwanted line-breaks between each entry?

Thanks,
Mark

PMario

unread,
Jun 20, 2016, 12:23:07 PM6/20/16
to tiddl...@googlegroups.com
I don't understand why you need a set-widget here. IMO you don't need it.

try this - (change the filter to your needs !!!!)

1) transcludes your content in block mode and therefore renders the content at least as a prargraph. So you have some paragraph spacing.

<$list filter="[tag[a]]"><$transclude mode=block/></$list>


2) renders the content in inline mode and the BR element creates a line break

<$list filter="[tag[a]]"><$view/><br/></$list>

If it works ...
have fun!
mario
Message has been deleted

Mark S.

unread,
Jun 20, 2016, 9:36:05 PM6/20/16
to TiddlyWiki
Thanks Mario!

That explains it!

The $set was needed to work with a macro  <pfx>  that feeds into the filter.

Mark
Reply all
Reply to author
Forward
0 new messages