Bug Notes HTML

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
chris
Posts: 5
Joined: 19 Mar 2005, 21:54

Bug Notes HTML

Post by chris »

Currently, when users enter a bug note with line breaks, it just adds <br /><br /> tags to the end of the line. Is it possible to have it surround each line break with <p> and </p> tags instead?
chris
Posts: 5
Joined: 19 Mar 2005, 21:54

Post by chris »

Great, I get no help for any of my posts, lol.
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Not without changing the code. Sorry.
chris
Posts: 5
Joined: 19 Mar 2005, 21:54

Post by chris »

Yeah, I'm fine with changing the code. I'm not sure where the code is to change, though.
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

The text fields are processed through "string_display" in core/strings_api.php. You probably want to modify string_nl2br to remove the insertion of the <br />.
Post Reply