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:
Ali Alzyod 2019-03-18 19:40:10 +01:00 committed by Xavi Artigas
parent 2abe5ad9bc
commit d8c770be1c
1 changed files with 1 additions and 1 deletions

View File

@ -2871,7 +2871,7 @@ _entry_has_new_line(const char *text)
{
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;
}