=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_man.c,v retrieving revision 1.63 retrieving revision 1.64 diff -c -r1.63 -r1.64 *** src/usr.bin/mandoc/mdoc_man.c 2014/07/02 03:47:07 1.63 --- src/usr.bin/mandoc/mdoc_man.c 2014/07/02 19:54:39 1.64 *************** *** 1,4 **** ! /* $Id: mdoc_man.c,v 1.63 2014/07/02 03:47:07 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze * --- 1,4 ---- ! /* $Id: mdoc_man.c,v 1.64 2014/07/02 19:54:39 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze * *************** *** 1561,1571 **** pre_sm(DECL_ARGS) { ! assert(n->child && MDOC_TEXT == n->child->type); ! if (0 == strcmp("on", n->child->string)) ! outflags |= MMAN_Sm | MMAN_spc; else outflags &= ~MMAN_Sm; return(0); } --- 1561,1576 ---- pre_sm(DECL_ARGS) { ! if (NULL == n->child) ! outflags ^= MMAN_Sm; ! else if (0 == strcmp("on", n->child->string)) ! outflags |= MMAN_Sm; else outflags &= ~MMAN_Sm; + + if (MMAN_Sm & outflags) + outflags |= MMAN_spc; + return(0); }