On Saturday, December 14, 2019 at 9:28:35 AM UTC-8, Chuck R. wrote:
>
> Thanks Eric but I don't want to keep the literal line breaks in a list
> item, I want the whole list item to rewrap to the size of the browser
> window.
>
oh... in that case... here's a quick method for converting newlines to
spaces without needing an external text editor
input tiddler: <$edit-text tiddler="$:/temp/input" tag="input" default=""/>
original content:
<pre>
<$text text={{{ [title{$:/temp/input}get[text]] }}} />
</pre>
output tiddler: <$edit-text tiddler="$:/temp/output" tag="input"
default=""/>
<$button> change linebreaks to spaces
<$action-setfield $tiddler={{$:/temp/output}} text={{{
[title{$:/temp/input}get[text]splitregexp[\n]join[ ]] }}} />
</$button>
result:
<pre>
<$text text={{{ [title{$:/temp/output}get[text]] }}} />
</pre>
It's not the most elegant solution, but it should get you started...
enjoy,
-e
--
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/9c10bf94-1aee-4ce2-92fe-79c8a4f1a5e6%40googlegroups.com.