PDA

View Full Version : Line breaks in "Full Description"



gevorg
09-26-2007, 05:13 PM
May I suggest adding the following code to line 1764 of global.php to process line breaks in the full description field?

This is necessary when users do not use the "Advanced Editor" to modify the look of the description and would like to add line breaks.

The line breaks are saved in the database, but when the page is rendered, they are disregarded.


//Process Line Breaks
$product['full_desc'] = str_replace( "\n" , "<br />" ,$product['full_desc']);

TWT-Chris
09-26-2007, 06:15 PM
If we did that then every new line in the code would be a break, and this would cause problem when using the advanced editor or HTML for that matter. So it cannot be done without causing problems. If it works for you then you are welcome to make the change.