Download & Extend

Reduce two spaces to one space only between firstname and lastname

Project:Address Field
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Between the firstname and lastname there are two spaces. It looks a bit odd and should be reduced to one space.

<span class="first-name">Firstname</span>  <span class="last-name">Lastname</span>

Comments

#1

Spaces are collapsible in HTML -- you can put as many spaces there as you like, they'll only be rendered as one. If your problem isn't about the rendering, what is bothering you?

#2

We can see the two spaced in the interface.

#3

If two spaces are showing, you must have a "whitespace: pre" declaration in your CSS for that element. I'd remove that.

#4

No. Do you see the two &nbsp; between firstname and lastname?

<?php
<div class="addressfield-container-inline name-block">
  <
span class="first-name">Firstname</span>&nbsp;&nbsp;<span class="last-name">Lastname</span>
</
div>
?>

#5

That wasn't in your original post ...

#6

Hm... maybe firebug added this... but this is not a css issue!

#7

Status:active» closed (duplicate)

Those are non-breaking spaces, and this has been fixed in: #1232608: Don't duplicate addressfield element prefixes or use non-breaking space prefixes for inline elements

nobody click here