forked from enlightenment/efl
elementary/elm_entry.c : Filter_accept should consider meanless tags and should not remove it. Thanks YoungBok Shin.
This commit is contained in:
parent
80c2c653a2
commit
350fa0366a
|
@ -4331,13 +4331,20 @@ elm_entry_filter_accept_set(void *data,
|
||||||
if (read_char == ';')
|
if (read_char == ';')
|
||||||
{
|
{
|
||||||
char *tag;
|
char *tag;
|
||||||
|
int utf8;
|
||||||
tag = malloc(read_idx - last_read_idx + 1);
|
tag = malloc(read_idx - last_read_idx + 1);
|
||||||
if (tag)
|
if (tag)
|
||||||
{
|
{
|
||||||
strncpy(tag, (*text) + last_read_idx, read_idx - last_read_idx);
|
strncpy(tag, (*text) + last_read_idx, read_idx - last_read_idx);
|
||||||
tag[read_idx - last_read_idx] = 0;
|
tag[read_idx - last_read_idx] = 0;
|
||||||
read_char = *(elm_entry_markup_to_utf8(tag));
|
utf8 = *(elm_entry_markup_to_utf8(tag));
|
||||||
free(tag);
|
free(tag);
|
||||||
|
if (!utf8)
|
||||||
|
{
|
||||||
|
in_set = EINA_FALSE;
|
||||||
|
goto inserting;
|
||||||
|
}
|
||||||
|
read_char = utf8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue