[evolution] EHTMLEditorView: Replace Tab character with 8 spaces instead of 4



commit 3c73b680ca4216498d8969a6d913bab94fec1677
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jun 10 09:36:47 2014 +0200

    EHTMLEditorView: Replace Tab character with 8 spaces instead of 4

 e-util/e-html-editor-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 21cadb3..a2472b1 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]