Making "parse newlines" feature more correct
|
|
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:
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.
Installation notes:
1. Open your system/functions.php find the following code in sed_parse function:
Code:
if ($parse_newlines)
{ $text = nl2br($text); }
{ $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.
Download : Stripping unnecessary line breaks from posts 
Size: 0.5KB, downloaded 146 times

Size: 0.5KB, downloaded 146 times


























