FreeBSD/contrib/mdocml/mdoc_html.c
/*
 * See the same function in mdoc_term.c for documentation.
 */
See the same function in mdoc_term.c for documentation.
See the same function in mdoc_term . c for documentation .
static void
synopsis_pre(struct html *h, const struct roff_node *n)
{
	if (NULL == n->prev || ! (MDOC_SYNPRETTY & n->flags))
		return;
	if (n->prev->tok == n->tok &&
	    MDOC_Fo != n->tok &&
	    MDOC_Ft != n->tok &&
	    MDOC_Fn != n->tok) {
		print_otag(h, TAG_BR, 0, NULL);
		return;
	}
	switch (n->prev->tok) {
	case MDOC_Fd:
	case MDOC_Fn:
	case MDOC_Fo:
	case MDOC_In:
	case MDOC_Vt:
		print_paragraph(h);
		break;
	case MDOC_Ft:
		if (MDOC_Fn != n->tok && MDOC_Fo != n->tok) {
			print_paragraph(h);
			break;
		}
	default:
		print_otag(h, TAG_BR, 0, NULL);
		break;
	}
}
static void synopsis_pre ( struct html * h , const struct roff_node * n ) { if ( NULL == n -> prev || ! ( MDOC_SYNPRETTY & n -> flags ) ) return ; if ( n -> prev -> tok == n -> tok && MDOC_Fo != n -> tok && MDOC_Ft != n -> tok && MDOC_Fn != n -> tok ) { print_otag ( h , TAG_BR , 0 , NULL ) ; return ; } switch ( n -> prev -> tok ) { case MDOC_Fd : case MDOC_Fn : case MDOC_Fo : case MDOC_In : case MDOC_Vt : print_paragraph ( h ) ; break ; case MDOC_Ft : if ( MDOC_Fn != n -> tok && MDOC_Fo != n -> tok ) { print_paragraph ( h ) ; break ; } default : print_otag ( h , TAG_BR , 0 , NULL ) ; break ; } }
See the same function in mdoc_term.c for documentation.
See the same function in mdoc_term . c for documentation .
/* FALLTHROUGH */