=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_validate.c,v retrieving revision 1.111 retrieving revision 1.112 diff -c -r1.111 -r1.112 *** src/usr.bin/mandoc/mdoc_validate.c 2013/09/16 00:25:06 1.111 --- src/usr.bin/mandoc/mdoc_validate.c 2013/10/03 19:32:25 1.112 *************** *** 1,7 **** ! /* $Id: mdoc_validate.c,v 1.111 2013/09/16 00:25:06 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons ! * Copyright (c) 2010, 2011, 2012 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above --- 1,7 ---- ! /* $Id: mdoc_validate.c,v 1.112 2013/10/03 19:32:25 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons ! * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *************** *** 884,891 **** if (MDOC_BLOCK != n->type) return(1); - - roff_regunset(mdoc->roff, REG_nS); return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT)); } --- 884,889 ---- *************** *** 1901,1910 **** /* The SYNOPSIS gets special attention in other areas. */ ! if (SEC_SYNOPSIS == sec) mdoc->flags |= MDOC_SYNOPSIS; ! else mdoc->flags &= ~MDOC_SYNOPSIS; /* Mark our last section. */ --- 1899,1911 ---- /* The SYNOPSIS gets special attention in other areas. */ ! if (SEC_SYNOPSIS == sec) { ! roff_setreg(mdoc->roff, "nS", 1); mdoc->flags |= MDOC_SYNOPSIS; ! } else { ! roff_setreg(mdoc->roff, "nS", 0); mdoc->flags &= ~MDOC_SYNOPSIS; + } /* Mark our last section. */