Your helper has "paragraph" in its name so maybe you should wrap it in a paragraph and use CSS to add the appropriate spacing around the paragraph:
<% if @geography != "Other" %>
<p>
<%= getparagraph(@geography, "geography") %>
</p>
<% end %>
You could always add a special class to the <p>
if you need an extra spacing after this:
<% if @geography != "Other" %>
<p class="geo-chunk">
<%= getparagraph(@geography, "geography") %>
</p>
<% end %>
and then in your CSS:
.geo-chunk {
margin-bottom: 2em; /* Or whatever works */
}
And if this is to appear inside another <p>
then you'd need to re-arrange the HTML a bit as you can't put a block element inside a <p>
:
<div>
<!-- The old <p> content ... -->
<% if @geography != "Other" %>
<div class="geo-chunk">
<%= getparagraph(@geography, "geography") %>
</div>
<% end %>
</div>
or
– Edward Castano Nov 11 '11 at 21:31tag between the if and end statements.
` but that doesn't have anything to do with option 1.
– mu is too short Nov 11 '11 at 23:59