forked from enlightenment/efl
evas: fix some indentation and formatting in textblock.
Summary: Fix some indentation and formatting. Reviewers: herdsman, tasn Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3174 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
3af65dd4e2
commit
3f0d0daf0d
|
@ -5997,13 +5997,17 @@ evas_textblock_style_set(Evas_Textblock_Style *ts, const char *text)
|
||||||
if (!key_start)
|
if (!key_start)
|
||||||
{
|
{
|
||||||
if (!isspace((unsigned char)(*p)))
|
if (!isspace((unsigned char)(*p)))
|
||||||
|
{
|
||||||
key_start = p;
|
key_start = p;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!key_stop)
|
else if (!key_stop)
|
||||||
{
|
{
|
||||||
if ((*p == '=') || (isspace((unsigned char)(*p))))
|
if ((*p == '=') || (isspace((unsigned char)(*p))))
|
||||||
|
{
|
||||||
key_stop = p;
|
key_stop = p;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!val_start)
|
else if (!val_start)
|
||||||
{
|
{
|
||||||
if (((*p) == '\'') && (*(p + 1)))
|
if (((*p) == '\'') && (*(p + 1)))
|
||||||
|
@ -7658,14 +7662,12 @@ evas_textblock_cursor_paragraph_last(Evas_Textblock_Cursor *cur)
|
||||||
node = _NODE_TEXT(EINA_INLIST_GET(node)->last);
|
node = _NODE_TEXT(EINA_INLIST_GET(node)->last);
|
||||||
cur->node = node;
|
cur->node = node;
|
||||||
cur->pos = 0;
|
cur->pos = 0;
|
||||||
|
|
||||||
evas_textblock_cursor_paragraph_char_last(cur);
|
evas_textblock_cursor_paragraph_char_last(cur);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cur->node = NULL;
|
cur->node = NULL;
|
||||||
cur->pos = 0;
|
cur->pos = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8611,7 +8613,6 @@ evas_textblock_cursor_line_set(Evas_Textblock_Cursor *cur, int line)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cur->pos = 0;
|
cur->pos = 0;
|
||||||
|
|
||||||
cur->node = o->text_nodes;
|
cur->node = o->text_nodes;
|
||||||
}
|
}
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
@ -11139,7 +11140,6 @@ _evas_textblock_clear(Eo *eo_obj, Evas_Textblock_Data *o)
|
||||||
{
|
{
|
||||||
cur->node = NULL;
|
cur->node = NULL;
|
||||||
cur->pos = 0;
|
cur->pos = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_evas_textblock_changed(o, eo_obj);
|
_evas_textblock_changed(o, eo_obj);
|
||||||
|
|
Loading…
Reference in New Issue