summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-10 08:31:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-10 08:31:41 +0000
commit368fbe28427ec16cec5cf1702d894444763426e0 (patch)
tree08100e267fe10f500638d66b14d92229c0eb3dd4 /man_term.c
parentf7239192d5929cd8f1da21cd05d1faab2880f559 (diff)
downloadmandoc-368fbe28427ec16cec5cf1702d894444763426e0.tar.gz
Back out OpenBSD special case (ok Ingo Schwarze).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/man_term.c b/man_term.c
index f0f5625e..58f424ca 100644
--- a/man_term.c
+++ b/man_term.c
@@ -893,13 +893,13 @@ print_man_head(struct termp *p, const struct man_meta *m)
char buf[BUFSIZ], title[BUFSIZ];
size_t buflen, titlen;
- p->rmargin = p->maxrmargin;
+ /*
+ * Note that old groff would spit out some spaces before the
+ * header. We discontinue this strange behaviour, but at one
+ * point we did so here.
+ */
-#ifdef __OpenBSD__
- term_vspace(p);
- term_vspace(p);
- term_vspace(p);
-#endif
+ p->rmargin = p->maxrmargin;
p->offset = 0;
buf[0] = title[0] = '\0';
@@ -941,12 +941,12 @@ print_man_head(struct termp *p, const struct man_meta *m)
p->offset = 0;
p->flags &= ~TERMP_NOSPACE;
-#ifdef __OpenBSD__
- term_vspace(p);
- term_vspace(p);
-#else
+ /*
+ * Groff likes to have some leading spaces before content. Well
+ * that's fine by me.
+ */
+
term_vspace(p);
term_vspace(p);
term_vspace(p);
-#endif
}