Formatting issue with pre and br

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
jettro
Posts: 1
Joined: Wed Nov 09, 2005 8:27 am

Formatting issue with pre and br

Post by jettro »

Hi I want te present a lot of code on my blog. I want to use the pre tag, but on every line a br tags is inserted. This br tag puts an extra line brake in my code. Is is possible to loose the br tag at some places? Or is there another solution?

http://www.gridshore.nl/blog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Formatting issue with pre and br

Post by garvinhicking »

This linebreak is inserted because of the "Markup: NL2BR" plugin you have installed. You can uninstall that if you don'T want those newlines to appear, but you cannot selectively only use the nl2br for specific parts of text.

Maybe you should use BBCode and use \ tags instead to format your entries? Those won't mind the br tags...?!

Regards,
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/
Post Reply