-/* $Id: man_term.c,v 1.60 2010/05/10 08:05:17 kristaps Exp $ */
+/* $Id: man_term.c,v 1.61 2010/05/10 08:27:09 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
if (0 == len)
term_newln(p);
- for (i = 0; i < len; i++)
+ for (i = 0; i <= len; i++)
term_vspace(p);
return(0);
if (n->prev && MAN_SH == n->prev->tok)
if (NULL == n->prev->body->child)
break;
+ /* If the first macro, no vspae. */
+ if (NULL == n->prev)
+ break;
term_vspace(p);
break;
case (MAN_HEAD):
p->rmargin = p->maxrmargin;
+#ifdef __OpenBSD__
+ term_vspace(p);
+ term_vspace(p);
+ term_vspace(p);
+#endif
+
p->offset = 0;
buf[0] = title[0] = '\0';
p->rmargin = p->maxrmargin;
p->offset = 0;
p->flags &= ~TERMP_NOSPACE;
+
+#ifdef __OpenBSD__
+ term_vspace(p);
+ term_vspace(p);
+#else
+ term_vspace(p);
+ term_vspace(p);
+ term_vspace(p);
+#endif
}