lucc / khard

Console vcard client
https://khard.readthedocs.io/en/latest/
GNU General Public License v3.0
595 stars 66 forks source link

Reduce empty address lines in "details" output #297

Closed sciurius closed 3 years ago

sciurius commented 3 years ago

When formatting the postal address, empty fields cause empty lines and sometimes weird appearance. For example:

Address
    HOME: 
        Main street 20

        1234 AB Blaricum
        , Netherlands

This PR removes empty fields from the address structure so they do not cause misbehaviour.

After the patch:

Address
    HOME: 
        Main street 20
        1234 AB Blaricum
        Netherlands
scheibler commented 3 years ago

Thank you