Jump to content

Unwanted break line between paragraphs


Recommended Posts

So, on prestashop 1.6.0.13:

 

I've set that on manufacturers list and in manufacturer's products list to display long description. In manufacturers list, the long description displays ok (there are only paragraphs), but on manufacturer's products list, where the long description appears before products list, appears a <br> between paragraphs.

 

I don't know how to remove this <br>, because it isn't on long description.

 

Any ideea?

Edited by diana13 (see edit history)
Link to comment
Share on other sites

No one?

 

Maybe my question wasn't clear. Let's rephrase:

 

On the manufacturer list the long description (I replaced short description with long description) displays as it is, like:

 

<p>paragraph1</p>

​<p>paragraph2</p>

​<p>paragraph3</p>

 

but on the manufacturer's products list, the long description for manufacturer displays like:

 

<p>paragraph1</p><br>

​<p>paragraph2</p><br>

​<p>paragraph3</p>

 

What ca I do to display without <br> ?

Edited by diana13 (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Here is a solution (not mine), it replaces the br by nothing. If you use this solution, you won't be able to use br in your manufacturers' descriptions
 

in themes/XXXXXXX/manufacturer.tpl
 
change:
{$manufacturer->description}  
 
for:
{$manufacturer->description|replace:"<br />":""}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...