cosmetic
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
cd21e6665b
commit
446df09acc
2
client.c
2
client.c
|
@ -769,7 +769,7 @@ static void
|
|||
client_markup_on_elem(markup_parser_data_t *p, const char *elem,
|
||||
const char **names, const char **values)
|
||||
{
|
||||
assert (!strcmp(elem, "title"));
|
||||
assert(!a_strcmp(elem, "title"));
|
||||
buffer_add_xmlescaped(&p->text, p->priv);
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ static void
|
|||
tag_markup_on_elem(markup_parser_data_t *p, const char *elem,
|
||||
const char **names, const char **values)
|
||||
{
|
||||
assert (!strcmp(elem, "title"));
|
||||
assert(!a_strcmp(elem, "title"));
|
||||
buffer_add_xmlescaped(&p->text, p->priv);
|
||||
}
|
||||
|
||||
|
|
|
@ -77,9 +77,8 @@ tasklist_markup_on_elem(markup_parser_data_t *p, const char *elem,
|
|||
struct tasklist_hook_data *data = p->priv;
|
||||
draw_context_t *ctx = data->ctx;
|
||||
|
||||
assert(!strcmp(elem, "bg"));
|
||||
assert(!a_strcmp(elem, "bg"));
|
||||
for(; *names; names++, values++)
|
||||
{
|
||||
if(!a_strcmp(*names, "color"))
|
||||
{
|
||||
xcolor_t bg_color;
|
||||
|
@ -87,7 +86,6 @@ tasklist_markup_on_elem(markup_parser_data_t *p, const char *elem,
|
|||
draw_rectangle(ctx, *data->area, 1.0, true, bg_color);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue