aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-02-27 04:42:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-02-27 04:42:07 +0800
commitbac1a59d59bb0326bb8b634bbf6ec973b20efd16 (patch)
tree8b40254ce41ef5951be0a14e0cb95d881616f34d /composer/e-msg-composer.c
parent22e5863a695a9e508d04d7dfc9a7f4c72500fcb1 (diff)
downloadgsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.gz
gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.tar.zst
gsoc2013-evolution-bac1a59d59bb0326bb8b634bbf6ec973b20efd16.zip
Add a <br> tag between the message text and the signature text (makes it
2004-02-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (set_editor_text): Add a <br> tag between the message text and the signature text (makes it nicer looking and also fixes bug #53747. svn path=/trunk/; revision=24897
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index b91d6205fd..a399b47b26 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1094,13 +1094,15 @@ set_editor_text(EMsgComposer *composer, const char *text, int setsig)
/* This copying bullshit is because the bonobo stream interface is just painful */
len = strlen(text);
- if (setsig
- && (sig = get_signature_html(composer))) {
- len += strlen(sig);
- content = mem = g_malloc(len+1);
- memcpy(mem, text, strlen(text));
- strcpy(mem + strlen(text), sig);
- g_free(sig);
+ if (setsig && (sig = get_signature_html (composer))) {
+ char *p;
+
+ len += strlen (sig) + 4;
+ content = p = mem = g_malloc (len + 1);
+ p = g_stpcpy (mem, text);
+ p = g_stpcpy (p, "<br>");
+ strcpy (p, sig);
+ g_free (sig);
} else {
content = text;
}