1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04: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,14 +1047,14 @@ 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) {
tag->x = x;
tag->y = y;
memcpy(tag->name, t, tag_len + 1);
add_to_list(document->tags, tag);
if (renderer_context.last_tag_for_newline == (struct tag *) &document->tags)
renderer_context.last_tag_for_newline = tag;
}
if (!tag) return;
tag->x = x;
tag->y = y;
memcpy(tag->name, t, tag_len + 1);
add_to_list(document->tags, tag);
if (renderer_context.last_tag_for_newline == (struct tag *) &document->tags)
renderer_context.last_tag_for_newline = tag;
}