diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-11 06:25:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-11 06:25:35 +0200 |
commit | f9f37dcae886fcab8b162620a4ec5652ab2a5ead (patch) | |
tree | 9bd150d3f2fb9b8f7c44d3b62b175f2ae79c06ec /libcontacts_format_contact.c | |
parent | Reorder things in libcontacts_same_number and fix an error (diff) | |
download | libcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.gz libcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.bz2 libcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.xz |
Fix birthday formatting and parsing
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_format_contact.c')
-rw-r--r-- | libcontacts_format_contact.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcontacts_format_contact.c b/libcontacts_format_contact.c index 002dd4a..81a06e4 100644 --- a/libcontacts_format_contact.c +++ b/libcontacts_format_contact.c @@ -188,13 +188,13 @@ libcontacts_format_contact(const struct libcontacts_contact *contact, char **dat if (contact->birthday) { fprintf(fp, "BIRTH:\n"); if (contact->birthday->year) - fprintf(fp, "YEAR %u\n", contact->birthday->year); + fprintf(fp, "\tYEAR %u\n", contact->birthday->year); if (contact->birthday->month) - fprintf(fp, "MONTH %u\n", (unsigned int)contact->birthday->month); + fprintf(fp, "\tMONTH %u\n", (unsigned int)contact->birthday->month); if (contact->birthday->day) - fprintf(fp, "DAY %u\n", (unsigned int)contact->birthday->day); + fprintf(fp, "\tDAY %u\n", (unsigned int)contact->birthday->day); if (contact->birthday->before_on_common) - fprintf(fp, "EARLY\n"); + fprintf(fp, "\tEARLY\n"); if ((list = contact->birthday->unrecognised_data)) for (; *list; list++) fprintf(fp, "\t%s\n", *list); |