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