From d0f096a835701c909d390b2b3488f36525273c72 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 10 May 2010 08:31:41 +0000 Subject: Back out OpenBSD special case (ok Ingo Schwarze). --- man_term.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index e272b09e..7223fab2 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.61 2010/05/10 08:27:09 kristaps Exp $ */ +/* $Id: man_term.c,v 1.62 2010/05/10 08:31:41 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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 } -- cgit v1.2.3