How could I join two HAML lines with a non-breaking space (& nbsp;) and no actual space, e.g.:
= 'foo'
%a(href='http://example.com') bar
I tried using the succeed helper, but a space is still generated between them. I want to remove the space.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How did you use succeed? Where did the space end up?
Did you combine it with the whitespace removal chars (
"<"and">") or try them on their own?This produces:
Is that literally what you want? It is “two lines joined by a non-breaking space with no actual space.”
(IMO, HAML is meh for inline content, and just no fun. Nice for layout.)