From 3c73b680ca4216498d8969a6d913bab94fec1677 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Tue, 10 Jun 2014 09:36:47 +0200 Subject: EHTMLEditorView: Replace Tab character with 8 spaces instead of 4 --- e-util/e-html-editor-view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 21cadb3a5e..a2472b1066 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -4301,12 +4301,12 @@ process_elements (EHTMLEditorView *view, GRegex *regex; content = webkit_dom_node_get_text_content (child); - /* Replace tabs with 4 whitespaces, otherwise they got + /* Replace tabs with 8 whitespaces, otherwise they got * replaced by single whitespace */ if (strstr (content, "\x9")) { regex = g_regex_new ("\x9", 0, 0, NULL); tmp = g_regex_replace ( - regex, content, -1, 0, " ", 0, NULL); + regex, content, -1, 0, " ", 0, NULL); webkit_dom_node_set_text_content (child, tmp, NULL); g_free (content); g_free (tmp); @@ -4413,7 +4413,7 @@ process_elements (EHTMLEditorView *view, if (strstr (content, "\x9")) { regex = g_regex_new ("\x9", 0, 0, NULL); tmp = g_regex_replace ( - regex, content, -1, 0, " ", 0, NULL); + regex, content, -1, 0, " ", 0, NULL); g_string_append (buffer, tmp); g_free (tmp); content = webkit_dom_node_get_text_content (child); -- cgit v1.2.3