Warning: Expiry date cannot have a year greater then 9999 in /home/kilandor/seditioforge.com/system/common.php on line 244
Making "parse newlines" feature more correct - Stripping unnecessary line breaks from posts - Seditio Forge
Making "parse newlines" feature more correct
Author: Trustmaster
Submitted by: Trustmaster
Date: 2007-11-02 12:40
Comments: (0)
Ratings:
 
If you use "parse newlines" feature in your Seditio parsing configuration, you may notice that it generates superfluous line breaks in paragraphs, lists and other items. The patch supplied below (see the link at the bottom) provides a quick solution of this problem.

Installation notes:
1. Open your system/functions.php find the following code in sed_parse function:
Code:
if ($parse_newlines)
{ $text = nl2br($text); }

and replace it with code provided in sed_parse_brfix.txt
2. Copy sed_parse_listbr function from sed_parse_listbr.txt and paste it right after the body of sed_parse function.



Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.083 seconds