summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-06 11:10:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-06 11:10:53 +0000
commited642de7ca282d168ea118d0860186abb1abcd59 (patch)
treec7eaf2e435cbb6cb0e7f21c7b00dd02e8501366d
parentc4fa950f5e6ed5b4e4e34092fb956af4832ae594 (diff)
downloadmandoc-ed642de7ca282d168ea118d0860186abb1abcd59.tar.gz
mandoc-ed642de7ca282d168ea118d0860186abb1abcd59.tar.zst
mandoc-ed642de7ca282d168ea118d0860186abb1abcd59.zip
Brought function arguments and style in ine with term_word() in term.c
to make sharing of TERMP_KEEP easier.
-rw-r--r--html.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/html.c b/html.c
index 0ec9bc91..f7bfa3c2 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.103 2010/06/25 19:50:23 kristaps Exp $ */
+/* $Id: html.c,v 1.104 2010/07/06 11:10:53 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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('['):