StringGadget does not filter out single #LF$

Just starting out? Need help? Post your questions and find answers here.
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

StringGadget does not filter out single #LF$

Post by Rinzwind »

When you copy paste text into it, it will filter out #CRLF$, but when it contains a single #LF$, it is left in. Which can happen when pasting from a web browser and causes unexpected results.
Last edited by Rinzwind on Sat Mar 26, 2022 7:29 am, edited 1 time in total.
infratec
Always Here
Always Here
Posts: 6818
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: TextGadget does not filter out single #LF$

Post by infratec »

Hm ...
I think it is possible to use multiline TextGadget() entries.
How will you do this without a LF ?
BarryG
Addict
Addict
Posts: 3294
Joined: Thu Apr 18, 2019 8:17 am

Re: TextGadget does not filter out single #LF$

Post by BarryG »

Rinzwind wrote: Fri Mar 25, 2022 5:45 amWhen you copy paste text into it
TextGadgets are read-only; you can't type or paste text into them. Did you mean StringGadgets?
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: StringGadget does not filter out single #LF$

Post by Rinzwind »

Right, stringgadget
Fred
Administrator
Administrator
Posts: 16623
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: StringGadget does not filter out single #LF$

Post by Fred »

I checked the code and we don't filter anything, so it might be a Windows thing. Did you try in another (non PB) app to see if you can reproduce this behaviour ?
Post Reply