tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f0d3cb91b37075e177809b27dedc10b4f507d76e
commit f0d3cb91b37075e177809b27dedc10b4f507d76e Author: Tom Hacohen <[email protected]> Date: Mon Nov 25 14:39:14 2013 +0000 Evas textblock: Fixed wrapping of lines ending with whites. Whites at the end of lines ending with whites should not be cut, but should be wrapped (there's no legal line break there). Thanks to Shilpa Singh for reporting. --- ChangeLog | 4 ++++ NEWS | 1 + src/lib/evas/canvas/evas_object_textblock.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d9561d1..3fb6084 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-11-25 Tom Hacohen + + * Evas textblock: Fixed wrapping of lines ending with whites. + 2013-11-25 ChunEon Park (Hermet) * Evas: Fix proxy render to update the proxies recursively. If a proxy diff --git a/NEWS b/NEWS index 9660f57..c7f0bb7 100644 --- a/NEWS +++ b/NEWS @@ -363,6 +363,7 @@ Fixes: - Fixed the textblock set to context with the textblock object's render operation. - Evas textblock: Fixed order of tags inserted with markup_app/prepend. - Fix proxy render to update the proxies recursively. If a proxy has proxies, all the chainged proxies should be updated recursively. + - Evas textblock: Fixed wrapping of lines ending with whites. * Ecore: - Don't leak fd on exec. diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 7077120..2c6c8f3 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -4256,7 +4256,7 @@ _layout_get_word_mixwrap_common(Ctxt *c, Evas_Object_Textblock_Format *fmt, the rest works on the last char of the previous string. If it's a whitespace, then it's ok, and no need to go back because we'll remove it anyway. */ - if (!_is_white(str[wrap])) + if (!_is_white(str[wrap]) || (wrap + 1 == len)) MOVE_PREV_UNTIL(line_start, wrap); /* If there's a breakable point inside the text, scan backwards until * we find it */ --
