aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-10 14:27:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-10 14:27:46 +0000
commit54fddf1f8cc02e8fa1f3c9e094b88a226bcb0ac5 (patch)
tree502ebb89fdd40adcfdcf95829fb387c8a662c1d5 /eqn_html.c
parent3292acbca8501925e4e4f875c4d374be76a46f19 (diff)
downloadmandoc-54fddf1f8cc02e8fa1f3c9e094b88a226bcb0ac5.tar.gz
mandoc-54fddf1f8cc02e8fa1f3c9e094b88a226bcb0ac5.tar.zst
mandoc-54fddf1f8cc02e8fa1f3c9e094b88a226bcb0ac5.zip
Drop trailing whitespace, adjust a few indentations,
and update Copyright year while here; no code change.
Diffstat (limited to 'eqn_html.c')
-rw-r--r--eqn_html.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/eqn_html.c b/eqn_html.c
index 73828684..3f3fe8f6 100644
--- a/eqn_html.c
+++ b/eqn_html.c
@@ -1,6 +1,6 @@
-/* $Id: eqn_html.c,v 1.8 2014/10/10 08:44:24 kristaps Exp $ */
+/* $Id: eqn_html.c,v 1.9 2014/10/10 14:27:46 schwarze Exp $ */
/*
- * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -54,7 +54,7 @@ eqn_box(struct html *p, const struct eqn_box *bp)
/* Estimate the number of rows, first. */
if (NULL == (child = parent->first))
goto out;
- for (rows = 0; NULL != child; rows++)
+ for (rows = 0; NULL != child; rows++)
child = child->next;
/* Print row-by-row. */
post = print_otag(p, TAG_MTABLE, 0, NULL);
@@ -70,12 +70,12 @@ eqn_box(struct html *p, const struct eqn_box *bp)
}
cell = print_otag
(p, TAG_MTD, 0, NULL);
- /*
+ /*
* If we have no data for this
* particular cell, then print a
* placeholder and continue--don't puke.
*/
- if (NULL != child)
+ if (NULL != child)
eqn_box(p, child->first);
print_tagq(p, cell);
parent = parent->next;
@@ -137,14 +137,14 @@ eqn_box(struct html *p, const struct eqn_box *bp)
assert(NULL == post);
post = print_otag(p, TAG_MI, 0, NULL);
print_text(p, bp->text);
- } else if (NULL == post) {
+ } else if (NULL == post) {
if (NULL != bp->left || NULL != bp->right) {
PAIR_INIT(&tag[0], ATTR_OPEN,
- NULL == bp->left ? "" : bp->left);
+ NULL == bp->left ? "" : bp->left);
PAIR_INIT(&tag[1], ATTR_CLOSE,
- NULL == bp->right ? "" : bp->right);
+ NULL == bp->right ? "" : bp->right);
post = print_otag(p, TAG_MFENCED, 2, tag);
- }
+ }
if (NULL == post)
post = print_otag(p, TAG_MROW, 0, NULL);
else
@@ -158,7 +158,7 @@ out:
t = print_otag(p, TAG_MO, 0, NULL);
print_text(p, bp->bottom);
print_tagq(p, t);
- }
+ }
if (NULL != bp->top) {
t = print_otag(p, TAG_MO, 0, NULL);
print_text(p, bp->top);