Forums / General Questions / Help Remove line breaks! <br> tags

Help Remove line breaks! <br> tags

Locked

Views: 1,560

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Aug 2008, 1:51 PM
#1
kthompson avatar

kthompson

New Zenner

Join Date:
Jul 2007
Location:
Minneapolis, MN, United States
Posts:
71
Plugin Contributions:
0

Help Remove line breaks! <br> tags

Hey All,

I consider myself to have somewhat advanced knowledge of Zen Cart but for some reason I cannot solve this problem.

There a certain places in the code where line breaks appear. <br> tags NOT <br /> which I find really peculiar because I always use XHTML so I figure the software must be generating them.

I can't find them anywhere in the template files and I tried using the developers tools kit and I can't find the problem there either.

The page I am talking about specifically is the product listing page when using the column display. Each element (i.e. product title, price, model number) has a <br> tag when I view the HTML source. What makes less sense is that the page still validates as XHTML.

PLEASE HELP! :frusty:

View the page here

-Ken

I dont care what it says next to my name. I've been Zenned!

24 Aug 2008, 1:57 PM
#2
kthompson avatar

kthompson

New Zenner

Join Date:
Jul 2007
Location:
Minneapolis, MN, United States
Posts:
71
Plugin Contributions:
0

Re: Help Remove line breaks! <br> tags

Nevermind, I found it

If anyone else has this problem its in the includes/modules/product_listing.php

where it says

 if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
      $lc_text = implode('<br/>', $product_contents);

apparently that does it.

I dont care what it says next to my name. I've been Zenned!

24 Aug 2008, 1:58 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Help Remove line breaks! <br> tags

If you're using the current version of Zen Cart, all catalog BR tags are self-terminated if you're using the core Zen Cart code exclusively. Non-terminated BR tags would be a result of customized code or addons.

That said, going to the URL you mention doesn't show me any <br> tags that are not self-terminated.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Aug 2008, 2:13 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Help Remove line breaks! <br> tags

is the product listing page when using the column display.

The Addon for the Columnar Display uses line breaks for it's display rather than putting each element in an unordered list.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.