Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: html formatting pulling from db
Thats because HTML considers newlines as white space, just like spaces,
tabs, etc. If you want to retain the line breaks, then you'll have to
replace every occurrence of a newline character in your stored character
string with an HTML line break, i.e. <BR>
David Swenson <davswens_at_prairie.nodak.edu> wrote in message
news:7d4ocb$iau$1_at_node2.nodak.edu...
>
> I have information stored in a oracle database and i want to display it in
2
> different formats...
> Here is the problem,
> I am having users enter information in a text box, and they tend
> to format it...
> ie.
> A. John is a good worker.
>
> 1. He works hard.
>
> 2. ...
>
> B. etc...
>
> However when i pull it out of the database and try to display it in html
the
> formatting is not preserved...
> ie.
> A. John is a good worker.1. He works hard.2...B...
>
> It will preserve the format if I put it back in a textbox, but that is not
> an option (unless there is a way to turn off editing in a textbox).
>
>
> I am not sure if this is the correct newsgroup to ask this. If not, it
> would help if someone could point me to a more suitable one.
>
> thanks
> David
>
>
Received on Wed Mar 24 1999 - 00:23:28 CST
![]() |
![]() |