MySQL Forums
Forum List  »  Newbie

Re: store and output formatted text
Posted by: Felix Geerinckx
Date: May 13, 2005 11:28AM

Karen Milacic wrote:

> I would like to build up a database of poetry but if I store the body text as 'text' it looses its
> formatting

No it doesn't.

> and then prints without the line breaks.

Are you perhaps trying to show the poem on a web page? Remember that HTML treats linefeeds as spaces. You need a <br> tag for linefeeds, unless you wrap your text in <pre>..</pre>.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: store and output formatted text
May 13, 2005 11:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.