From 1e7720d904665f833840ea9ab53b3879b399fcc4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 3 Dec 2011 23:59:14 +0000 Subject: Remove an OpenBSD-specific tweak regarding .Xr spacing and make it compatible with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@ --- mdoc_macro.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'mdoc_macro.c') diff --git a/mdoc_macro.c b/mdoc_macro.c index 024af0c9..0400e3f2 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1569,22 +1569,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. - */ - -#ifdef __OpenBSD__ - 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); - } -#endif - if ( ! dword(m, line, la, p, DELIM_MAX)) return(0); j++; -- cgit