forked from enlightenment/efl
evas_object_textblock: Fix binary search fail.
D8610 Makes API Testcase fault. "<" is never searching. @fix Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8803
This commit is contained in:
parent
a0878e4925
commit
f41bec7b80
|
@ -1271,8 +1271,8 @@ static const Escape_Value escape_values_e_common_sorted[] = {
|
|||
ESCAPE_VALUE("&", "\x26"),
|
||||
ESCAPE_VALUE("'", "\x27"),
|
||||
ESCAPE_VALUE(">", "\x3e"),
|
||||
ESCAPE_VALUE(""", "\x22"),
|
||||
ESCAPE_VALUE("<", "\x3c"),
|
||||
ESCAPE_VALUE(""", "\x22"),
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -8185,6 +8185,8 @@ _markup_get_text_utf8_append(Eina_Strbuf *sbuf, const char *text)
|
|||
eina_strbuf_append(sbuf, "&");
|
||||
else if (ch == '"')
|
||||
eina_strbuf_append(sbuf, """);
|
||||
else if (ch == '\'')
|
||||
eina_strbuf_append(sbuf, "'");
|
||||
else if (ch == _PARAGRAPH_SEPARATOR)
|
||||
eina_strbuf_append(sbuf, "<ps/>");
|
||||
else if (ch == _REPLACEMENT_CHAR)
|
||||
|
|
|
@ -3241,6 +3241,13 @@ EFL_START_TEST(evas_textblock_text_getters)
|
|||
fail_if(strcmp(tmp2, "aa"));
|
||||
free(tmp2);
|
||||
free(tmp);
|
||||
|
||||
tmp = evas_textblock_text_markup_to_utf8(NULL, "<align=center>hello</align>&gt;"'");
|
||||
fail_if(strcmp(tmp, "<align=center>hello</align>>\"\'"));
|
||||
tmp2 = evas_textblock_text_utf8_to_markup(NULL, tmp);
|
||||
fail_if(strcmp(tmp2, "<align=center>hello</align>&gt;"'"));
|
||||
free(tmp2);
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
/* complex markup set/get */
|
||||
|
|
Loading…
Reference in New Issue