[tw5] Re: How do I send a newline character from a button?

2021-07-04 Thread TW Tones
The pre-release boasts a new operator that may help here

https://tiddlywiki.com/prerelease/#charcode%20Operator

Tones


On Sunday, 4 July 2021 at 00:37:31 UTC+10 Eric Shulman wrote:

> On Saturday, July 3, 2021 at 6:08:35 AM UTC-7 miket...@gmail.com wrote:
>
>> Let's say I have a code for a button:
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler"
>> text='Line 1 Line 2'
>> />
>> New
>> 
>> How can I split the lines so that in the editor they would be in a couple 
>> of lines, and not one?
>
>
> Symbolic newlines such as "\r\n" are not supported within parameter 
> values, but you *can* embed *actual* newlines in the parameter value, 
> like this:
> <$action-sendmessage $message="tm-new-tiddler"
> text='Line 1
> Line 2'/>
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/873c0a3e-e468-4848-974d-4f93c093c902n%40googlegroups.com.


[tw5] Re: How do I send a newline character from a button?

2021-07-03 Thread Mike Andyl
Thanks a lot, I wouldn't have checked it myself! ))

суббота, 3 июля 2021 г. в 17:37:31 UTC+3, Eric Shulman: 

> On Saturday, July 3, 2021 at 6:08:35 AM UTC-7 miket...@gmail.com wrote:
>
>> Let's say I have a code for a button:
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler"
>> text='Line 1 Line 2'
>> />
>> New
>> 
>> How can I split the lines so that in the editor they would be in a couple 
>> of lines, and not one?
>
>
> Symbolic newlines such as "\r\n" are not supported within parameter 
> values, but you *can* embed *actual* newlines in the parameter value, 
> like this:
> <$action-sendmessage $message="tm-new-tiddler"
> text='Line 1
> Line 2'/>
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1a6bd205-01ad-4bfc-9751-ec391ad0dacbn%40googlegroups.com.


[tw5] Re: How do I send a newline character from a button?

2021-07-03 Thread Eric Shulman
On Saturday, July 3, 2021 at 6:08:35 AM UTC-7 miket...@gmail.com wrote:

> Let's say I have a code for a button:
> <$button>
> <$action-sendmessage $message="tm-new-tiddler"
> text='Line 1 Line 2'
> />
> New
> 
> How can I split the lines so that in the editor they would be in a couple 
> of lines, and not one?


Symbolic newlines such as "\r\n" are not supported within parameter values, 
but you *can* embed *actual* newlines in the parameter value, like this:
<$action-sendmessage $message="tm-new-tiddler"
text='Line 1
Line 2'/>

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c95177a4-4883-47c4-bf18-c5d31bdcf9e9n%40googlegroups.com.


[tw5] Re: How do I send a newline character from a button?

2021-07-03 Thread Mike Andyl
No, this is for the finished text, but I need it for the editor.

суббота, 3 июля 2021 г. в 16:24:05 UTC+3, Siniy-Kit: 

> Line 1  Line 2
>
> суббота, 3 июля 2021 г. в 16:08:35 UTC+3, miket...@gmail.com: 
>
>> Let's say I have a code for a button:
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler"
>> text='Line 1 Line 2'
>> />
>> New
>> 
>>
>> How can I split the lines so that in the editor they would be in a couple 
>> of lines, and not one?
>>
>> Line 1
>> Line 2
>>
>> Similar to "/r/n"
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ac365449-7077-457b-8110-4a71687b1d98n%40googlegroups.com.


[tw5] Re: How do I send a newline character from a button?

2021-07-03 Thread Siniy-Kit
Line 1  Line 2

суббота, 3 июля 2021 г. в 16:08:35 UTC+3, miket...@gmail.com: 

> Let's say I have a code for a button:
> <$button>
> <$action-sendmessage $message="tm-new-tiddler"
> text='Line 1 Line 2'
> />
> New
> 
>
> How can I split the lines so that in the editor they would be in a couple 
> of lines, and not one?
>
> Line 1
> Line 2
>
> Similar to "/r/n"

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3012adda-6c6e-48d4-b3ab-e1c1ad3da63dn%40googlegroups.com.