Closed (fixed)
Project:
Views Field View
Version:
7.x-1.0-rc3
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2012 at 20:51 UTC
Updated:
28 May 2019 at 16:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rinasek commentedI had similar problem this week and views output was giving me a lot of leading whitespaces and couple of trailing white spaces.
Problem is that part of "whitespaces" is not exactly whitespace only.
First you have Carrige return and after that you have Line feed . After that there is only white space. I guess that views "Remove whitespaces" option is doing what it says removing white spaces, but problem is that before whitespace you have CR and LF.
This is how i solved it.
<li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>.<?php print $row; ?>with<?php print trim($row,"\r\n "); ?>and test.This solved all my problems, removed both leading and trailing whitespaces.
Hope this helps.
Comment #2
damiankloip commentedGoing to mark this as fixed. This is not really a VFV issue, more of a views issue I think.
Comment #4
lionguard commentedI ran into this same issue, but took a different approach of making a small patch to the module which enables whitespace and/or html to be stripped out of the final rendered view - see attached for the patch file
Comment #5
matis1718 commentedhi, i have big trouble with the blank space at the top of the site. i change parallax and all the time the site broken. which file i need to edit? for example the site like this.
pls can you help me?
Comment #6
dmaya commentedI am having the same issue at @matis1718 and am not sure that this is the right place for the question. Lots of blank whitespace at the top of my homepage only. Any advice?
Comment #7
abelaguado commentedHI lionguard. Your patch works great!