Generated pre code

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Generated pre code

Post by yellowled »

Hi,

if I create preformatted text using the <pre> elemtent in the non-WYSIWYG-Editor, the output code a) contains a line break (<br />) after each line and b) is put into <strong></strong>. While both of them can easily be disabled using CSS, I was wondering why this happens at all?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Generated pre code

Post by garvinhicking »

Hi!

The "nl2br" and "Serendipity markup" markup plugins do that to you. Either disable them completely, or on a per-posting basis using the Extended properties for entries plugin.

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/
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

YL - I just learned something new today... see, you can teach an old dog new tricks.

Anyway, read this post regarding the markup plugins toward the end of the post:

http://board.s9y.org/viewtopic.php?t=10864
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Don Chambers wrote:see, you can teach an old dog new tricks.
Truly amazing. I guess that means I can remove those <pre> things from BP's style.css :)

YL
Post Reply