Problems with Line Breaks in <pre> paragraphs

Skinning and designing Serendipity (CSS, HTML, Smarty)
dougburns
Regular
Posts: 35
Joined: Wed Jul 12, 2006 9:04 pm
Location: Edinburgh, UK
Contact:

Post by dougburns »

garvinhicking wrote:Dougburns: You should replace it with "\n", that is a simple newline character in mysql. :-)
Yep, my comments are now fixed and (warning - horrible hack approaching) I just replaced the <BR /><BR /> in my <pre> examples with <BR /><P></P><BR> to fool IE into thinking there was something between the line breaks.

It's not a strategy for the future, but it dug me out of my current hole ;-)

Thanks for your help
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

*g*

Well, that should do the trick for starters, I guess. Another thing to avoid folding might be to use "<br /> <br />" (notice the space in between!)?

Have fun,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ChiaJesus
Regular
Posts: 7
Joined: Tue Jul 11, 2006 5:28 pm

Post by ChiaJesus »

www.davidsportal.com

Editing the pasted text (from a web page) or even creating a new entry, there seems to be no way of having a blank line between paragraphs. My first entry worked, but it doesn't seem to want to do it any more.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Edit your style.css entry and use

Code: Select all

.serendipity_entry p {
 margin: 10px;
}
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ChiaJesus
Regular
Posts: 7
Joined: Tue Jul 11, 2006 5:28 pm

Post by ChiaJesus »

This was the solution.

Once again, thanks.
Post Reply