diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-10 18:59:54 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-10 18:59:54 +0800 |
commit | 1ab3eeec5ddc03584dbac05c6f4a0b8879faa000 (patch) | |
tree | 061e55dc38ba6e02d53a43e27011ac241379e828 /e-util | |
parent | 3c73b680ca4216498d8969a6d913bab94fec1677 (diff) | |
download | gsoc2013-evolution-1ab3eeec5ddc03584dbac05c6f4a0b8879faa000.tar.gz gsoc2013-evolution-1ab3eeec5ddc03584dbac05c6f4a0b8879faa000.tar.zst gsoc2013-evolution-1ab3eeec5ddc03584dbac05c6f4a0b8879faa000.zip |
EHTMLEditorView: Skip BR on the end of HTML that's parsed into paragraphs
Do that to avoid unnecessary empty paragraph element.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-html-editor-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<br>") != 0)) { WebKitDOMElement *paragraph; if (use_pre) { |