aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-10 15:36:47 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-10 16:34:18 +0800
commit3c73b680ca4216498d8969a6d913bab94fec1677 (patch)
treebf53391b943b0ee3786ef1eb5409a556d91a3940
parent483a0a28e5a0818094e9b3409b7aa156e56175ca (diff)
downloadgsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar.gz
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar.bz2
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar.lz
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar.xz
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.tar.zst
gsoc2013-evolution-3c73b680ca4216498d8969a6d913bab94fec1677.zip
EHTMLEditorView: Replace Tab character with 8 spaces instead of 4
-rw-r--r--e-util/e-html-editor-view.c6
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 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);