Quickest way of removing line breaks or commas for non-existent address fields

!! Thanks for the concise info. I spent a little time fiddling with some basic CSS and came up with an easy solution for this. The CSS code is pretty straight forward (a simple pseudo selector) and it means I don’t need to add any conditions at all. Granted it uses HTML rather than a text field, but I’m perfectly happy working with that.

#address-container .address {
    display: block;
#address-container .address:empty {
    display: none;