Code:
This is a line. This is a line.
Code:
This is a line. <br /> <br />This is a line. <br /> <br />
Code:
This is a line. <br /><br /> <br /><br />This is a line. <br /><br /> <br /><br />

![]() |
| | Thread Tools | Display Modes |
| |||
|
When I enter a story with newlines in the content, they're replaced with <br/>'s. That's fine. But every time I save changes, an extra level of <br/>'s is added: Code: This is a line. This is a line. Code: This is a line. <br /> <br />This is a line. <br /> <br /> Code: This is a line. <br /><br /> <br /><br />This is a line. <br /><br /> <br /><br /> |
| |||
|
I patched this problem by adding a condition to the newlinification in editlink.php: Code: if ( !strstr($linkres->content, '<br />'))
{
$linkres->content = str_replace("\n", "<br />", $linkres->content);
} |
| |||
|
I think Savant also fixed this is the latest code. http://pligg.svn.sourceforge.net/vie...v&revision=620 |
| |||
|
another similar thing -system adding space to tags, every edit makes space bigger, and in latest code is somthing wrong with short story option in edit. you can edit this, and save, but on main page will be everytime old version
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /var/log/httpd/error_log messages | gr8rcake | Questions and Comments | 4 | 06-01-2010 12:25 PM |
| Pligg Errors | tcritic | Questions and Comments | 4 | 09-01-2009 10:40 AM |
| Upgrading a 9.8.2 template to 9.9 | AshDigg | Wiki Articles | 10 | 05-01-2008 02:38 PM |
| cann't vote in pligg (buliding 802) | haxhax | Questions and Comments | 27 | 03-10-2007 07:53 AM |
| ERROR: my_base_url is not set. Please correct this using the admin panel. Then refres | search | Questions and Comments | 7 | 11-14-2006 11:35 PM |