Re: Text with \n's in DBDO/QF
| From: | Justin Patrin | Date: | Thu, 03 Feb 2005 17:50:00 +0000 |
| Subject: | Re: Text with \n's in DBDO/QF | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17363@lists.php.net to get a copy of this message | ||
On Wed, 2 Feb 2005 23:19:25 -0800, Ken Restivo <ken@restivo.org> wrote:
> I have a longtext (MySQL) field which contains text with \n's.
>
> They display correctly in a textareafield in QF. But if I update() them, the \n's are gone
> and I getonereallylongrunonparagraph instead.
>
Does it also have no spaces? This doesn't sound like a newline only
problem to me? Are you using any QF filters?
> In my old homegrown framework, I don't recall doing anything special to preserve the exact
> text through edits and saves.
>
> I haven't been able to figure out whether it is QF or DBDO that is mangling my text.
>
> Is there some way to turn off this behaviour?
>
> In a perfect world I would write test scripts and isolate exactly what is going wrong, and
> where. But since I'm ridiculously behind schedule, I'll be lazy and ask here, assuming
> others have seen this before.
>
I haven't seen any problem like this and I use DO and QF every day.
Granted, I usually (always) use FormBuilder to do it, but I don't
think FormBuilder alters text fields in any way. Have you tried
updating yout PEAR packages? I would also suggest:
DB_DataObject::debugLevel(5);
and see if you can see anything strange there.
--
Justin Patrin