forked from enlightenment/efl
Evas textblock: Fix some indentation and formatting.
Summary: Fix some indentation and formatting. Reviewers: herdsman, cedric, tasn Reviewed By: cedric Subscribers: jpeg, cedric Differential Revision: https://phab.enlightenment.org/D3174
This commit is contained in:
parent
337939ef14
commit
105960b24f
|
@ -6292,13 +6292,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)))
|
||||||
|
@ -7994,14 +7998,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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9751,7 +9753,6 @@ evas_textblock_cursor_range_delete(Evas_Textblock_Cursor *cur1, Evas_Textblock_C
|
||||||
reset_cursor = EINA_TRUE;
|
reset_cursor = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (n1 == n2)
|
if (n1 == n2)
|
||||||
{
|
{
|
||||||
if ((cur1->pos == 0) &&
|
if ((cur1->pos == 0) &&
|
||||||
|
@ -9996,7 +9997,6 @@ _evas_textblock_cursor_range_text_plain_get(const Evas_Textblock_Cursor *cur1, c
|
||||||
cur2->obj = _cur2->obj;
|
cur2->obj = _cur2->obj;
|
||||||
evas_textblock_cursor_copy(_cur2, cur2);
|
evas_textblock_cursor_copy(_cur2, cur2);
|
||||||
|
|
||||||
|
|
||||||
if (n1 == n2)
|
if (n1 == n2)
|
||||||
{
|
{
|
||||||
const Eina_Unicode *tmp;
|
const Eina_Unicode *tmp;
|
||||||
|
@ -11530,7 +11530,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