How can I remove the space between fields show in a view that are output with a custom template? I have a view that has two fields, A and B.  Both of these fields are modified using a views-view-field--myfield.tpl.php file.

In my output, I want the fields to be displayed as:


  AB (no space in between the values)


However, no matter what I do, it seems that Views puts a space between the two fields.  I am using an Unformatted list and under Settings I have unchecked Add views row classes as well as Add striping (odd/even) rows classes.  This has no effect on the spacing.

Under Settings for Fields, I have unchecked Provide default field wrapper elements.  Again, the spacing remains.

I tried rewriting the results of the fields by inputting [field_fieldA][field_fieldB] under Rewrite the output of this field, but, while this output is shown in the preview in the Views admin interface, it is overwritten by the views-view-field--myfield.tpl.php file for the relevant field.

How can I output two values, both of which are output via template files, without a space between them?
I just created a quick View here that had three fields:

1.  Node title.
2.  Node type.
3.  Global Custom Text Area


I changed the HTML Element and Wrapper HTML Elements to SPANs for the first two fields and also set them both to be excluded from display.

For the Global Custom Text Area, I rewrote its output to be [title][type] and got the titles smashed right up next to the node types without a space.

ADDITION:

You could also copy views-view-field.tpl.php to views-view-fields--smashed.tpl.php (or whatever your Views name is :) and then remove all the whitespace from there, eg, this template looks nice like this:

 &lt;?php something ?&gt;
   &lt;?php something else ?&gt;
   &lt;?php something else again ?&gt;
 &lt;?php yadda yadda ?&gt;


and each of those lines and indents puts in the whitespace that is causing your grief.

If instead this is saved as

 &lt;?php something ?&gt;&lt;?php something else ?&gt;&lt;?php yadda yadda ?&gt;&lt;?php one really big long line of code without any intervening tabs or new lines or spaces ?&gt;


and your view will be created with the &lt;divs&gt; or &lt;spans&gt; smashed right up next to each other in the row.  Then CSS it up the way you want.