=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_macro.c,v retrieving revision 1.174 retrieving revision 1.175 diff -c -r1.174 -r1.175 *** src/usr.bin/mandoc/mdoc_macro.c 2017/02/16 09:47:10 1.174 --- src/usr.bin/mandoc/mdoc_macro.c 2017/04/17 12:52:00 1.175 *************** *** 1,4 **** ! /* $OpenBSD: mdoc_macro.c,v 1.174 2017/02/16 09:47:10 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012-2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: mdoc_macro.c,v 1.175 2017/04/17 12:52:00 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012-2017 Ingo Schwarze *************** *** 901,908 **** } } ! if (scope) rew_elem(mdoc, tok); /* * If no elements have been collected and we're allowed to have --- 901,910 ---- } } ! if (scope && tok != MDOC_Lk) { rew_elem(mdoc, tok); + scope = 0; + } /* * If no elements have been collected and we're allowed to have *************** *** 922,927 **** --- 924,931 ---- } if (nl) append_delims(mdoc, line, pos, buf); + if (scope) + rew_elem(mdoc, tok); } static void