FreeBSD/contrib/mdocml/man_term.c
/*
 * Printing leading vertical space before a block.
 * This is used for the paragraph macros.
 * The rules are pretty simple, since there's very little nesting going
 * on here.  Basically, if we're the first within another block (SS/SH),
 * then don't emit vertical space.  If we are (RS), then do.  If not the
 * first, print it.
 */
Printing leading vertical space before a block.
This is used for the paragraph macros.
The rules are pretty simple, since there's very little nesting going
on here.  Basically, if we're the first within another block (SS/SH),
then don't emit vertical space.  If we are (RS), then do.  If not the
first, print it.
Printing leading vertical space before a block . This is used for the paragraph macros . The rules are pretty simple since there ' s very little nesting going on here . Basically if we ' re the first within another block ( SS / SH ) then don ' t emit vertical space . If we are ( RS ) then do . If not the first print it .
static void
print_bvspace(struct termp *p, const struct roff_node *n, int pardist)
{
	int	 i;
	term_newln(p);
	if (n->body && n->body->child)
		if (n->body->child->type == ROFFT_TBL)
			return;
	if (n->parent->type == ROFFT_ROOT || n->parent->tok != MAN_RS)
		if (NULL == n->prev)
			return;
	for (i = 0; i < pardist; i++)
		term_vspace(p);
}
static void print_bvspace ( struct termp * p , const struct roff_node * n , int pardist ) { int i ; term_newln ( p ) ; if ( n -> body && n -> body -> child ) if ( n -> body -> child -> type == ROFFT_TBL ) return ; if ( n -> parent -> type == ROFFT_ROOT || n -> parent -> tok != MAN_RS ) if ( NULL == n -> prev ) return ; for ( i = 0 ; i < pardist ; i ++ ) term_vspace ( p ) ; }
Printing leading vertical space before a block.
Printing leading vertical space before a block .