aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-html-editor-selection.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 5141b08956..f3f2ed5fdf 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2187,6 +2187,7 @@ out:
static void
format_change_list_to_block (EHTMLEditorSelection *selection,
EHTMLEditorSelectionBlockFormat format,
+ const gchar *value,
WebKitDOMDocument *document)
{
gboolean after_end = FALSE;
@@ -2221,13 +2222,11 @@ format_change_list_to_block (EHTMLEditorSelection *selection,
if (!after_end) {
if (format == E_HTML_EDITOR_SELECTION_BLOCK_FORMAT_PARAGRAPH)
- element = e_html_editor_selection_get_paragraph_element (selection, document, -1, 0);
- else if (format == E_HTML_EDITOR_SELECTION_BLOCK_FORMAT_PRE)
- element = webkit_dom_document_create_element (document, "PRE", NULL);
- else if (format == E_HTML_EDITOR_SELECTION_BLOCK_FORMAT_BLOCKQUOTE)
- element = webkit_dom_document_create_element (document, "BLOCKQUOTE", NULL);
+ element = e_html_editor_selection_get_paragraph_element (
+ selection, document, -1, 0);
else
- element = e_html_editor_selection_get_paragraph_element (selection, document, -1, 0);
+ element = webkit_dom_document_create_element (
+ document, value, NULL);
after_end = webkit_dom_node_contains (next_item, WEBKIT_DOM_NODE (selection_end));
@@ -2360,7 +2359,7 @@ e_html_editor_selection_set_block_format (EHTMLEditorSelection *selection,
format_change_block_to_block (selection, format, view, value, document);
if (from_list && !to_list)
- format_change_list_to_block (selection, format, document);
+ format_change_list_to_block (selection, format, value, document);
if (!from_list && to_list)
format_change_block_to_list (selection, format, view, document);
e Calligra to 2.5.1.avilla2012-09-012-7/+2 * The KDE/FreeBSD team is pleased to announce version 2.5 of Calligra,avilla2012-08-262-11/+3 * - Update Calligra to 2.4.3.avilla2012-07-052-2/+4 * The KDE/FreeBSD team is pleased to announce Calligra Suite 2.4.2, KDEavilla2012-05-314-33/+46 * - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-0/+1 * Fix PKGORIGINmakc2011-04-191-1/+1 * - Update KOffice to 2.3.3.avilla2011-04-131-2/+2