_sel_clear(en->cursor, rp->object, en);
evas_object_textblock_text_markup_set(rp->object, text);
evas_textblock_cursor_node_last(en->cursor);
- if ((!evas_textblock_cursor_node_format_get(en->cursor)) ||
- (!strcmp(evas_textblock_cursor_node_format_get(en->cursor), "\n")) ||
- (!strcmp(evas_textblock_cursor_node_format_get(en->cursor), "\\n")))
- evas_textblock_cursor_format_append(en->cursor, "\n");
+ if (!evas_textblock_cursor_node_format_get(en->cursor))
+ {
+ evas_textblock_cursor_format_append(en->cursor, "\n");
+ }
+ else if (!((!strcmp(evas_textblock_cursor_node_format_get(en->cursor), "\n")) ||
+ (!strcmp(evas_textblock_cursor_node_format_get(en->cursor), "\\n"))))
+ {
+ evas_textblock_cursor_format_append(en->cursor, "\n");
+ }
_anchors_get(en->cursor, rp->object, en);
_edje_emit(rp->edje, "entry,changed", rp->part->name);
_edje_entry_set_cursor_start(rp);