aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-08-10 14:07:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-08-10 14:07:23 +0000
commitc619517840844d90275e85e95a4c4721398bf1a1 (patch)
tree6824e940ac83fd35ae554f4538237ec126295e29 /mdoc_macro.c
parentf69e01302697e376e379e332951a82596c22d73d (diff)
downloadmandoc-c619517840844d90275e85e95a4c4721398bf1a1.tar.gz
mandoc-c619517840844d90275e85e95a4c4721398bf1a1.tar.zst
mandoc-c619517840844d90275e85e95a4c4721398bf1a1.zip
Allow `Sx' and `Ss' to have child nodes. Fixes manuals in NetBSD.
Originally pointed out by joerg@ then again by Thomas Klausner by way of Nicolas Joy. Note: don't use these constructions as you can't link to the sections with `Sx'.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 03d1b91c..b2d743bc 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.109 2011/04/30 10:18:24 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.110 2011/08/10 14:07:23 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -74,8 +74,8 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ in_line_eoln, MDOC_PROLOGUE }, /* Dd */
{ in_line_eoln, MDOC_PROLOGUE }, /* Dt */
{ in_line_eoln, MDOC_PROLOGUE }, /* Os */
- { blk_full, 0 }, /* Sh */
- { blk_full, 0 }, /* Ss */
+ { blk_full, MDOC_PARSED }, /* Sh */
+ { blk_full, MDOC_PARSED }, /* Ss */
{ in_line_eoln, 0 }, /* Pp */
{ blk_part_imp, MDOC_PARSED }, /* D1 */
{ blk_part_imp, MDOC_PARSED }, /* Dl */