Fix _entry_has_new_line on detecting new lines when it finds <br> <ps> in passed...
authorAli Alzyod <ali198724@gmail.com>
Mon, 18 Mar 2019 18:40:10 +0000 (19:40 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
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

src/lib/elementary/elm_entry.c

index 5323cda368b94cd9bc129a619f4ea50a4da2ce77..3bb1aa70362c9205b29459e1171095cd913081bc 100644 (file)
@@ -3907,7 +3907,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;
                }