From d5e61107113ffa9f65d7cf11288799367268364f Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Thu, 20 Oct 2005 11:21:02 +0200 Subject: [PATCH] html_special_tag(): reduce indentation. --- src/document/html/renderer.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index 5b6771eb..b0e833d3 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -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; }