diff options
author | Tom Hacohen <tom@stosb.com> | 2014-12-08 15:40:10 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2015-01-14 08:45:40 +0000 |
commit | 050991465ace031f82043b3c5c6d63a181d4058b (patch) | |
tree | 43f42e0159d22a2ac290bb2921162ffea4d0c509 | |
parent | 8b3403e3759cffbd1ab5bd9f43347ccf5cb3b210 (diff) | |
download | efl-050991465ace031f82043b3c5c6d63a181d4058b.tar.gz |
Start treating line breaks.
-rw-r--r-- | src/lib/evas/canvas/evas_textblock2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/evas_textblock2.c b/src/lib/evas/canvas/evas_textblock2.c index 39165a2041..8d0d50fea8 100644 --- a/src/lib/evas/canvas/evas_textblock2.c +++ b/src/lib/evas/canvas/evas_textblock2.c @@ -4801,11 +4801,11 @@ _layout_par(Ctxt *c) Evas_Object_Textblock2_Format_Item *fi; fi = _ITEM_FORMAT(it); fi->y = c->y; - /* If it's a newline, and we are not in newline compat - * mode, or we are in newline compat mode, and this is - * not used as a paragraph separator, advance */ - if (fi->item && _IS_LINE_SEPARATOR(fi->item) && - (eina_list_next(i))) + } + else + { + Evas_Object_Textblock2_Text_Item *ti = _ITEM_TEXT(it); + if (GET_ITEM_TEXT(ti)[ti->text_props.text_len] == '\n') { adv_line = 1; } |