scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

commit 199998afafd9415f8d330159e18f70422c4b6174
parent da6ddfe08b259e0be0f2ca41026699b72f744eb6
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 29 May 2018 19:18:22 -0400

Permit man pages in section 0

This is used for POSIX headers

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -22,8 +22,8 @@ static int parse_section(struct parser *p) { break; } int sec = strtol(section->str, NULL, 10); - if (sec < 1 || sec > 9) { - parser_fatal(p, "Expected section between 1 and 9"); + if (sec < 0 || sec > 9) { + parser_fatal(p, "Expected section between 0 and 9"); break; } str_free(section);