From 1ab3eeec5ddc03584dbac05c6f4a0b8879faa000 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Tue, 10 Jun 2014 12:59:54 +0200 Subject: EHTMLEditorView: Skip BR on the end of HTML that's parsed into paragraphs Do that to avoid unnecessary empty paragraph element. --- e-util/e-html-editor-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index a2472b1066..4ad98b2fd9 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -2409,7 +2409,7 @@ parse_html_into_paragraphs (EHTMLEditorView *view, g_free (to_insert); } - if (g_utf8_strlen (prev_br, -1) > 0) { + if (g_utf8_strlen (prev_br, -1) > 0 && (g_strcmp0 (prev_br, "
") != 0)) { WebKitDOMElement *paragraph; if (use_pre) { -- cgit v1.2.3