diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-06 11:10:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-06 11:10:53 +0000 |
commit | 25b9ffe82ac5592b33241ae447d947f4dca24f7f (patch) | |
tree | 4f945f54ec0e79c9c5658ba66ccc48f7d53b25d6 /html.c | |
parent | b69b9fd58611283cb941da0f7c4800196b97bf83 (diff) | |
download | mandoc-25b9ffe82ac5592b33241ae447d947f4dca24f7f.tar.gz |
Brought function arguments and style in ine with term_word() in term.c
to make sharing of TERMP_KEEP easier.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -484,11 +484,11 @@ print_doctype(struct html *h) void -print_text(struct html *h, const char *p) +print_text(struct html *h, const char *word) { - if (*p && 0 == *(p + 1)) - switch (*p) { + if (word[0] && '\0' == word[1]) + switch (word[0]) { case('.'): /* FALLTHROUGH */ case(','): @@ -514,16 +514,16 @@ print_text(struct html *h, const char *p) if ( ! (h->flags & HTML_NOSPACE)) putchar(' '); - assert(p); - if ( ! print_encode(h, p, 0)) + assert(word); + if ( ! print_encode(h, word, 0)) h->flags &= ~HTML_NOSPACE; /* * Note that we don't process the pipe: the parser sees it as * punctuation, but we don't in terms of typography. */ - if (*p && 0 == *(p + 1)) - switch (*p) { + if (word[0] && '\0' == word[1]) + switch (word[0]) { case('('): /* FALLTHROUGH */ case('['): |