1
0
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:
Laurent MONIN 2005-10-20 11:21:02 +02:00 committed by Laurent MONIN
parent ca27359131
commit d5e6110711

View File

@ -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