Removing Extra Line Breaks Added To Magento Product Descriptions

In order to remove the extra line breaks that are added to Magento product descriptions. Simply update the following file:

/app/design/frontend/base/default/template/catalog/product/view/description.phtml

Edit the line nl2br($_description) to $_description, removing nl2br.

The added line breaks were causing issues in Firefox when creating unordered lists and such as the list code would have an added line break, <br>, or what appeared to be line spacing added to each item within the list.

Comments

  1. tony says:

    very helpful, thanks. People may also want to do this for their short description, which is in the view.phtml file

  2. Kevin McMillian says:

    I must thank the both of you for this… SEM for your post and Tony for your comment as this is what I was really after!

    Adios guys!

Speak Your Mind

*

CAPTCHA image
*