All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Search - no whitespace in outputted HTML

Laura Montgomery 18 Mar 2015 14:14 problem, rejected

Hi, I'm getting an unexpected output in Low Search results in the front-end code. It looks like the whitespace around the outputted HTML tags is being removed which is causing minor layout issues.

Technically speaking I could resolve the issue in CSS but just wondering if this is something that has creeped into Low Search as it's not something I've experienced before.

Hopefully this helps explain what I mean better.

Replies

  1. Low 18 Mar 2015 14:19

    Hmm, Low Search doesn't actually remove any white space from the tagdata. It might be the native channel:entries tag itself doing this. If you replace the low_search:results tag with a channel:entries tag, do you get the same effect?

  2. Laura Montgomery 18 Mar 2015 14:54

    Hi Low, thanks for getting back to me. I was using similar code elsewhere on the site which was in channel:entries, hence why I thought it may have been Low:Search causing the issue. However after changing the tags on this page I was still getting the same issue.

    Looking more closing I noticed that there was an if statement within the a tag's href. I removed this and everything is working perfectly.

    Sorry for bothering you with this. I'm going to go shout at the other developer now on your behalf.

  3. Low 18 Mar 2015 14:55

    No worries. :)