aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-19 17:57:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-19 17:57:23 +0000
commitdc409878671ea1571807749a48b645dd88048385 (patch)
tree83834697b270533b1b80f4f6df735a0231d6ae94 /read.c
parent9ded0b0acccd78c24e423f47db992897a949faef (diff)
downloadmandoc-dc409878671ea1571807749a48b645dd88048385.tar.gz
mandoc-dc409878671ea1571807749a48b645dd88048385.tar.zst
mandoc-dc409878671ea1571807749a48b645dd88048385.zip
In groff, trying to redefine standard man(7) macros before .TH has no effect;
after .TH, it works. Trying to redefine standard mdoc(7) macros before .Dd works when calling groff with the -mdoc command line option, but does not when calling groff with -mandoc; after .Dd, it always works. Arguably, one might call that buggy behaviour in groff, but it is very unlikely that anybody will change groff in this respect (certainly, i'm not volunteering). So let's be bug-compatible. This fixes the vertical spacing in sox(1). Merging from OpenBSD libmandoc.h 1.18, read.c 1.8, roff.c 1.47, June 2, 2012.
Diffstat (limited to 'read.c')
-rw-r--r--read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.c b/read.c
index 967d8b80..89b2c28d 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.32 2012/11/16 22:21:05 schwarze Exp $ */
+/* $Id: read.c,v 1.33 2012/11/19 17:57:23 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -740,7 +740,7 @@ mparse_alloc(enum mparset inttype, enum mandoclevel wlevel,
curp->inttype = inttype;
curp->defos = defos;
- curp->roff = roff_alloc(curp);
+ curp->roff = roff_alloc(inttype, curp);
return(curp);
}