diff options
author | Dan Winship <danw@src.gnome.org> | 2003-03-17 05:52:05 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-03-17 05:52:05 +0800 |
commit | 94ff918c13a03c65422e8995dd6ec53fdd093fdd (patch) | |
tree | a2839a5f70733bc7df4107cca78f34942f4866fa | |
parent | 1fffa41a16a749d2bb43295b587e18165ee43035 (diff) | |
download | gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar.gz gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar.bz2 gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar.lz gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar.xz gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.tar.zst gsoc2013-evolution-94ff918c13a03c65422e8995dd6ec53fdd093fdd.zip |
When declaring a line to be part of "extended" because we don't know what
* ename/e-address-western.c (e_address_western_parse): When
declaring a line to be part of "extended" because we don't know
what else to call it, keep the preceding "\n" so that the address
still looks the same when we reassemble the pieces later. Fixes
handling of non-US addresses
svn path=/trunk/; revision=20306
-rw-r--r-- | e-util/ChangeLog | 8 | ||||
-rw-r--r-- | e-util/ename/e-address-western.c | 16 |
2 files changed, 15 insertions, 9 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 3c522366fd..391046c654 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,11 @@ +2003-03-13 Dan Winship <danw@ximian.com> + + * ename/e-address-western.c (e_address_western_parse): When + declaring a line to be part of "extended" because we don't know + what else to call it, keep the preceding "\n" so that the address + still looks the same when we reassemble the pieces later. Fixes + handling of non-US addresses + 2003-03-12 Dan Winship <danw@ximian.com> * e-xml-hash-utils.c (e_xml_to_hash): Update for a libxml2 change diff --git a/e-util/ename/e-address-western.c b/e-util/ename/e-address-western.c index f2200a9dba..9d325f1384 100644 --- a/e-util/ename/e-address-western.c +++ b/e-util/ename/e-address-western.c @@ -399,15 +399,13 @@ e_address_western_parse (const gchar *in_address) &eaw->extended ); } else { - if (eaw->extended == NULL) { - eaw->extended = g_strdup (lines[cntr]); - } - else { - gchar *temp; - temp = g_strconcat (eaw->extended, "\n", lines[cntr], NULL); - g_free (eaw->extended); - eaw->extended = temp; - } + gchar *temp; + temp = g_strdup_printf ( + "%s\n%s", + eaw->extended ? eaw->extended: "", + lines[cntr]); + g_free (eaw->extended); + eaw->extended = temp; } } } |