mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
html_special_tag(): reduce indentation.
This commit is contained in:
parent
ca27359131
commit
d5e6110711
@ -1047,14 +1047,14 @@ html_special_tag(struct document *document, unsigned char *t, int x, int y)
|
|||||||
tag_len = strlen(t);
|
tag_len = strlen(t);
|
||||||
/* One byte is reserved for name in struct tag. */
|
/* One byte is reserved for name in struct tag. */
|
||||||
tag = mem_alloc(sizeof(*tag) + tag_len);
|
tag = mem_alloc(sizeof(*tag) + tag_len);
|
||||||
if (tag) {
|
if (!tag) return;
|
||||||
tag->x = x;
|
|
||||||
tag->y = y;
|
tag->x = x;
|
||||||
memcpy(tag->name, t, tag_len + 1);
|
tag->y = y;
|
||||||
add_to_list(document->tags, tag);
|
memcpy(tag->name, t, tag_len + 1);
|
||||||
if (renderer_context.last_tag_for_newline == (struct tag *) &document->tags)
|
add_to_list(document->tags, tag);
|
||||||
renderer_context.last_tag_for_newline = tag;
|
if (renderer_context.last_tag_for_newline == (struct tag *) &document->tags)
|
||||||
}
|
renderer_context.last_tag_for_newline = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user