When using Ruby on Rails or other framework, a lot of time we generate <span>
or <img>
in a loop, and each line will be on a new line.
So when it is rendered in HTML, there will be extra space between those inline elements.
How can it be solved? Must they be made into 1 long line, or solvable using HTML or CSS?