Playmaker Forum

Bug Reporting => Playmaker Bug Reporting => Topic started by: Thore on July 26, 2017, 12:23:46 PM

Title: String Split: \n \t separators don't work, but will split n's and t's[SOLVED]
Post by: Thore on July 26, 2017, 12:23:46 PM
Found this after I wrote the below, my report is a bit clearer: http://hutonggames.com/playmakerforum/index.php?topic=12940.msg60396#msg60396

Playmaker version 1.8.4
(latest as of now)

Action: String Split
Issue: \n \t  separators don't work.

Expectation: According to tooltip, \n should accept a line break, and \t should accept a tab as separators.
Bug: It will treat any n or t as separator, e.g. D'artagnan will be split up. Also, will not split up at actual line break or tab.
 
Repro 1: make a string value, and set it to D'artagnan, then try the action with \n and \t.

Repro 2:

Related, a small improvement would be to update the tooltip of Action "Load from File" (which I'm using in conjunction). Change the tooltip to: "e.g. Assets/Test.txt" giving users an instant idea where the text to load is expected.

Thanks!









Title: Re: String Split: \n \t separators don't work, but will split n's and t's
Post by: MS80 on October 12, 2017, 06:29:00 AM
This is still the case for playmaker 1.8.5! (\n does not nothing! )

Please, fix it as soon as possible!
Title: Re: String Split: \n \t separators don't work, but will split n's and t's
Post by: Arnoob on October 21, 2017, 03:42:45 PM
I just encountered this issue, can confirm that \n does nothing, it is only written as any text.
Unity 2017.2.0f3 Playmaker 1.8.5.f8
Title: Re: String Split: \n \t separators don't work, but will split n's and t's
Post by: jeanfabre on October 23, 2017, 02:24:19 AM
Hi,

 check this: http://hutonggames.com/playmakerforum/index.php?topic=12940.msg60413#msg60413

inputing the litteral string \n isn;'t working because it will treat \ as a character and not a special keychar.

 Bye,

 Jean
Title: Re: String Split: \n \t separators don't work, but will split n's and t's[SOLVED]
Post by: Arnoob on October 23, 2017, 04:43:56 AM
Thank you Jeanfabre!  :)