Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: html formatting pulling from db

Re: html formatting pulling from db

From: Steve Halko <steveh_at_redshift.com>
Date: Tue, 23 Mar 1999 22:23:28 -0800
Message-ID: <922256623.374.53@news.remarQ.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US