Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    81
    Plugin Contributions
    0

    Default Recent update 1.3.8 - 1.5.1, Extra line breaks now in some product descriptions

    I recently updated my site and now some existing products have a bunch of extra line breaks. It seems to be only products that were using a HTML table. The table still shows up, but has a lot of line breaks before. .
    Here is an example.

    I searched around a bit already, but could not find a fix. This Thread seemed to have the same issue, but I am just using the plain text editor.

  2. #2
    Join Date
    Sep 2008
    Posts
    210
    Plugin Contributions
    21

    Default Re: Recent update 1.3.8 - 1.5.1, Extra line breaks now in some product descriptions

    I think you can use strip_tags to remove all break in products description.

    http://php.net/manual/en/function.strip-tags.php

    strip_tags($products_description, '<p><a><table><tr><td><tbody>')

    You can add more what you need.
    Our Site: http://zucando.com
    Marketing Plugins: Marketing Modules
    Free Response Templates: Responsive Templates

  3. #3
    Join Date
    Feb 2010
    Posts
    81
    Plugin Contributions
    0

    Default Re: Recent update 1.3.8 - 1.5.1, Extra line breaks now in some product descriptions

    Not sure where I would need to add that and also I do not want to remove all line break, just the random ones added by zen-cart. After a little more messing around I have discovered it's only HTML tables that do not have anything above them. If I insert <p>text</p> above the table everything shows up normal without the line breaks. I have a slightly modified tpl_product_info_display, but have tried with the default and had the same result. Does this mean I have an open tag somewhere?

 

 

Similar Threads

  1. v151 Adding extra line-breaks to emails that are sent from admin
    By devyani in forum General Questions
    Replies: 0
    Last Post: 22 Jul 2014, 10:42 AM
  2. v138a Trying to keep line breaks in product description
    By 007mcfod in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 May 2014, 11:48 PM
  3. Adding html tables to product description adds extra line breaks
    By ndknsrln in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 4 Mar 2013, 12:35 AM
  4. Extra line breaks in this message were removed
    By cablesimple in forum General Questions
    Replies: 2
    Last Post: 21 Jan 2008, 03:12 PM
  5. Replies: 3
    Last Post: 30 Dec 2007, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg