CR LF

Steve Holden sholden at holdenweb.com
Mon Sep 4 14:09:33 EDT 2000


Well, that's true.  However, since the general case is extracting data
from a database and formatting it, I assumed that probably not enough
would be known about the data to predict the required format.

Clearly this approach is much more useful when rows from a relational
database are being formatted into large chunks of HTML.  Generally,
then, you know how many fields exist and where in the HTML they need
to go.

regards 
 Steve

Katja Kimppa wrote:
> 
> >
> 
> Hi!
> You also could print out preformatted text with the <pre>-tag.
> 
> >
> > >>> string.replace(dbresult, "\n", "<BR>\n")
> > 'This string wraps onto 3 lines<BR>\012Line2<BR>\012Line3<BR>\012'
> >
> > regards
> >  Steve
> >
> > --
> > Helping people meet their information needs with training and technology.
> > 703 967 0887      sholden at bellatlantic.net      http://www.holdenweb.com/

-- 
Helping people meet their information needs with training and technology.
703 967 0887      sholden at bellatlantic.net      http://www.holdenweb.com/



More information about the Python-list mailing list