aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-11-04 02:49:22 +0800
committerMilan Crha <mcrha@redhat.com>2009-11-04 02:49:22 +0800
commit64892e739d1ca8b13dfa0bfb86607f2f694e5671 (patch)
tree6092a7c7821e787270a8360072b74e4a5d8d96d8 /composer
parentfbbb865ed40f4342d62225543f25ffe23b3f35e4 (diff)
downloadgsoc2013-evolution-64892e739d1ca8b13dfa0bfb86607f2f694e5671.tar.gz
gsoc2013-evolution-64892e739d1ca8b13dfa0bfb86607f2f694e5671.tar.zst
gsoc2013-evolution-64892e739d1ca8b13dfa0bfb86607f2f694e5671.zip
Bug #599124 - Signature always includes an empty line in front of text
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 9e3418a1f2..7bf67a4fb8 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1303,7 +1303,7 @@ get_signature_html (EMsgComposer *composer)
*/
html = g_strdup_printf ("<!--+GtkHTML:<DATA class=\"ClueFlow\" key=\"signature\" value=\"1\">-->"
"<!--+GtkHTML:<DATA class=\"ClueFlow\" key=\"signature_name\" value=\"uid:%s\">-->"
- "<TABLE WIDTH=\"100%%\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR><TD><BR>"
+ "<TABLE WIDTH=\"100%%\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR><TD>"
"%s%s%s%s"
"%s</TD></TR></TABLE>",
encoded_uid ? encoded_uid : "",
@@ -3867,8 +3867,8 @@ e_msg_composer_show_sig_file (EMsgComposer *composer)
g_free (html_text);
} else if (is_top_signature (composer)) {
/* insert paragraph after the signature ClueFlow things */
- gtkhtml_editor_run_command (editor, "cursor-forward");
- gtkhtml_editor_run_command (editor, "insert-paragraph");
+ if (gtkhtml_editor_run_command (editor, "cursor-forward"))
+ gtkhtml_editor_run_command (editor, "insert-paragraph");
}
gtkhtml_editor_undo_end (editor);