diff options
author | 2011-09-30 00:13:21 +0000 | |
---|---|---|
committer | 2011-09-30 00:13:21 +0000 | |
commit | e6ab379c46688a3fd9cf5e777b19d0a706820bbd (patch) | |
tree | 6f9c4fea0edea9032a4c48c28b3de0337d0b45c3 /usr.bin/mandoc/mdoc.c | |
parent | Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect, (diff) | |
download | wireguard-openbsd-e6ab379c46688a3fd9cf5e777b19d0a706820bbd.tar.xz wireguard-openbsd-e6ab379c46688a3fd9cf5e777b19d0a706820bbd.zip |
implement .Ap .Bd .Bo .Bq .D1 .Ic .Lp .Oo .Pf .Po .Ss .Sx .Sy .br .sp
implement .Bl -bullet
add more information to the .TH line
escape dots at the beginnings of lines
add trailing newline character at the end of the file
do not misinterpret the ROOT block as .Ap
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
-rw-r--r-- | usr.bin/mandoc/mdoc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c index b02b169bb92..80c1d32e919 100644 --- a/usr.bin/mandoc/mdoc.c +++ b/usr.bin/mandoc/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.85 2011/09/18 15:54:48 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.86 2011/09/30 00:13:21 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -156,6 +156,7 @@ mdoc_alloc1(struct mdoc *mdoc) mdoc->last = mandoc_calloc(1, sizeof(struct mdoc_node)); mdoc->first = mdoc->last; mdoc->last->type = MDOC_ROOT; + mdoc->last->tok = MDOC_MAX; mdoc->next = MDOC_NEXT_CHILD; } |