diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-20 16:46:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-20 16:46:04 +0000 |
commit | 29cecee7ff6894517a32d929aecee283bb85058c (patch) | |
tree | a8b7e1f77dc92d5398b03e113570778649b94aba /tbl_html.c | |
parent | 27178e6666d82be945ee668c2530249f5c728eb6 (diff) | |
download | mandoc-29cecee7ff6894517a32d929aecee283bb85058c.tar.gz mandoc-29cecee7ff6894517a32d929aecee283bb85058c.tar.zst mandoc-29cecee7ff6894517a32d929aecee283bb85058c.zip |
KNF: case (FOO): -> case FOO:, remove /* LINTED */ and /* ARGSUSED */,
remove trailing whitespace and blanks before tabs, improve some indenting;
no functional change
Diffstat (limited to 'tbl_html.c')
-rw-r--r-- | tbl_html.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl_html.c,v 1.10 2012/05/27 17:54:54 schwarze Exp $ */ +/* $Id: tbl_html.c,v 1.11 2014/04/20 16:46:05 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -31,15 +31,14 @@ static void html_tblopen(struct html *, const struct tbl_span *); static size_t html_tbl_len(size_t, void *); static size_t html_tbl_strlen(const char *, void *); -/* ARGSUSED */ + static size_t html_tbl_len(size_t sz, void *arg) { - + return(sz); } -/* ARGSUSED */ static size_t html_tbl_strlen(const char *p, void *arg) { @@ -107,9 +106,9 @@ print_tbl(struct html *h, const struct tbl_span *sp) tt = print_otag(h, TAG_TR, 0, NULL); switch (sp->pos) { - case (TBL_SPAN_HORIZ): + case TBL_SPAN_HORIZ: /* FALLTHROUGH */ - case (TBL_SPAN_DHORIZ): + case TBL_SPAN_DHORIZ: PAIR_INIT(&tag, ATTR_COLSPAN, "0"); print_otag(h, TAG_TD, 1, &tag); break; |