diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-11-19 17:57:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-11-19 17:57:23 +0000 |
commit | f54547a9a73ceac08c89c5a0084f6fcb01900892 (patch) | |
tree | ee737a5854f581a5c65cd829890445550ad8d671 /libmandoc.h | |
parent | 0fa2afa184f53b477014d5e3f914ff27ee06b04d (diff) | |
download | mandoc-f54547a9a73ceac08c89c5a0084f6fcb01900892.tar.gz |
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 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmandoc.h b/libmandoc.h index 94eae400..8b4ea5e4 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,6 +1,6 @@ /* $Id$ */ /* - * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> + * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -67,7 +67,7 @@ int man_addspan(struct man *, const struct tbl_span *); int man_addeqn(struct man *, const struct eqn *); void roff_free(struct roff *); -struct roff *roff_alloc(struct mparse *); +struct roff *roff_alloc(enum mparset, struct mparse *); void roff_reset(struct roff *); enum rofferr roff_parseln(struct roff *, int, char **, size_t *, int, int *); |