diff options
author | 2011-12-03 23:01:21 +0000 | |
---|---|---|
committer | 2011-12-03 23:01:21 +0000 | |
commit | bf1c21e68149b24aa258bb3a6e426bb974a0d7d0 (patch) | |
tree | 2ca63dec3072475cf5c4df7e3b5f464f2730e025 /usr.bin/mandoc/mdoc_macro.c | |
parent | remove useless "#ifdef __linux__" that crept in, (diff) | |
download | wireguard-openbsd-bf1c21e68149b24aa258bb3a6e426bb974a0d7d0.tar.xz wireguard-openbsd-bf1c21e68149b24aa258bb3a6e426bb974a0d7d0.zip |
Remove an OpenBSD-specific tweak regarding .Xr spacing
and make it compatible with bsd.lv mandoc and with groff-1.21.
This tweak was originally added for compatibility with groff-1.15,
which is no longer needed.
ok jmc@ kristaps@
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_macro.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c index da05e3ac2f0..b8dd1b21f17 100644 --- a/usr.bin/mandoc/mdoc_macro.c +++ b/usr.bin/mandoc/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.71 2011/12/03 22:47:27 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.72 2011/12/03 23:01:21 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -1565,19 +1565,6 @@ in_line_argn(MACRO_PROT_ARGS) flushed = 1; } - /* - * XXX: this is a hack to work around groff's ugliness - * as regards `Xr' and extraneous arguments. It should - * ideally be deprecated behaviour, but because this is - * code is no here, it's unlikely to be removed. - */ - if (MDOC_Xr == tok && j == maxargs) { - if ( ! mdoc_elem_alloc(m, line, la, MDOC_Ns, NULL)) - return(0); - if ( ! rew_elem(m, MDOC_Ns)) - return(0); - } - if ( ! dword(m, line, la, p, DELIM_MAX)) return(0); j++; |