jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=b2282f628b12d8a5c3a439890e469e7cfcb34b1e

commit b2282f628b12d8a5c3a439890e469e7cfcb34b1e
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Thu Feb 18 01:09:55 2016 +0900

    indent: Fix not to process complex logic for single markup symbols
---
 src/lib/enventor_private.h |  3 +++
 src/lib/indent.c           | 10 ++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/lib/enventor_private.h b/src/lib/enventor_private.h
index f71a473..73b60ce 100644
--- a/src/lib/enventor_private.h
+++ b/src/lib/enventor_private.h
@@ -28,6 +28,9 @@
 #define QUOT_UTF8_LEN 1
 #define SEMICOL_UTF8 ";"
 #define SEMICOL_UTF8_LEN 1
+#define LESS "&lt;"
+#define GREATER "&gt;"
+#define AMP "&amp;"
 #define EOL "<br/>"
 #define EOL_LEN 5
 #define TAB "<tab/>"
diff --git a/src/lib/indent.c b/src/lib/indent.c
index 8a891d7..655c07a 100644
--- a/src/lib/indent.c
+++ b/src/lib/indent.c
@@ -477,11 +477,17 @@ indent_insert_apply(indent_data *id, Evas_Object *entry, 
const char *insert,
      {
         if (!strcmp(insert, EOL))
           {
-            indent_insert_br_case(id, entry);
-            return 1;
+             indent_insert_br_case(id, entry);
+             return 1;
           }
         else if (!strcmp(insert, QUOT))
           return 0;
+        else if (!strcmp(insert, LESS))
+          return 0;
+        else if (!strcmp(insert, GREATER))
+          return 0;
+        else if (!strcmp(insert, AMP))
+          return 0;
         else
           return indent_text_auto_format(id, entry, insert);
      }

-- 


Reply via email to