Html email generated by php -- having weird breaks

I’m generating an html with php …

here’s what the raw source of part of one of the emails :

occasionally, weird breaks get thrown in and will screw things up— as in this instance, it breaks the image cause it puts a break in its url (see orange arrow).

Anyone know how to prevent this?