forked from enlightenment/efl
Fix _entry_has_new_line on detecting new lines when it finds <br> <ps> in passed string
Summary: Fix issue where **_entry_has_new_line** will not detect '<br>' or '<ps>' inside markup text as new lines indicators. this functionlity effect following public function: **elm_entry_single_line_set()** Reviewers: woohyun, bowonryu, ManMower, cedric, raster, segfaultxavi Reviewed By: bowonryu, segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8323
This commit is contained in:
parent
2abe5ad9bc
commit
d8c770be1c
|
@ -2871,7 +2871,7 @@ _entry_has_new_line(const char *text)
|
||||||
{
|
{
|
||||||
if (!strncmp(text, "<br", 3) || !strncmp(text, "<ps", 3))
|
if (!strncmp(text, "<br", 3) || !strncmp(text, "<ps", 3))
|
||||||
{
|
{
|
||||||
if (text[4] == '>' || ((text[4] == '/') && (text[5] == '>')))
|
if (text[3] == '>' || ((text[3] == '/') && (text[4] == '>')))
|
||||||
{
|
{
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue