version 1.191, 2012/11/17 00:26:33 |
version 1.194, 2013/10/05 22:08:12 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2010, 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 319 static const enum mdoct rsord[RSORD_MAX] = { |
|
Line 319 static const enum mdoct rsord[RSORD_MAX] = { |
|
MDOC__U, |
MDOC__U, |
MDOC__P, |
MDOC__P, |
MDOC__Q, |
MDOC__Q, |
|
MDOC__C, |
MDOC__D, |
MDOC__D, |
MDOC__O, |
MDOC__O |
MDOC__C |
|
}; |
}; |
|
|
static const char * const secnames[SEC__MAX] = { |
static const char * const secnames[SEC__MAX] = { |
Line 888 pre_sh(PRE_ARGS) |
|
Line 888 pre_sh(PRE_ARGS) |
|
|
|
if (MDOC_BLOCK != n->type) |
if (MDOC_BLOCK != n->type) |
return(1); |
return(1); |
|
|
roff_regunset(mdoc->roff, REG_nS); |
|
return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT)); |
return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT)); |
} |
} |
|
|
Line 1905 post_sh_head(POST_ARGS) |
|
Line 1903 post_sh_head(POST_ARGS) |
|
|
|
/* The SYNOPSIS gets special attention in other areas. */ |
/* The SYNOPSIS gets special attention in other areas. */ |
|
|
if (SEC_SYNOPSIS == sec) |
if (SEC_SYNOPSIS == sec) { |
|
roff_setreg(mdoc->roff, "nS", 1); |
mdoc->flags |= MDOC_SYNOPSIS; |
mdoc->flags |= MDOC_SYNOPSIS; |
else |
} else { |
|
roff_setreg(mdoc->roff, "nS", 0); |
mdoc->flags &= ~MDOC_SYNOPSIS; |
mdoc->flags &= ~MDOC_SYNOPSIS; |
|
} |
|
|
/* Mark our last section. */ |
/* Mark our last section. */ |
|
|
Line 1964 post_sh_head(POST_ARGS) |
|
Line 1965 post_sh_head(POST_ARGS) |
|
break; |
break; |
if (*mdoc->meta.msec == '9') |
if (*mdoc->meta.msec == '9') |
break; |
break; |
mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_SECMSEC); |
mandoc_msg(MANDOCERR_SECMSEC, mdoc->parse, |
|
mdoc->last->line, mdoc->last->pos, buf); |
break; |
break; |
default: |
default: |
break; |
break; |