forked from enlightenment/enventor
indent: Fix not to process complex logic for single markup symbols
This commit is contained in:
parent
7108c1c05e
commit
b2282f628b
|
@ -28,6 +28,9 @@
|
|||
#define QUOT_UTF8_LEN 1
|
||||
#define SEMICOL_UTF8 ";"
|
||||
#define SEMICOL_UTF8_LEN 1
|
||||
#define LESS "<"
|
||||
#define GREATER ">"
|
||||
#define AMP "&"
|
||||
#define EOL "<br/>"
|
||||
#define EOL_LEN 5
|
||||
#define TAB "<tab/>"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue