aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-12-03 23:59:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-12-03 23:59:14 +0000
commit0f10c53eb575a6891b9d903803ee9f23251f36fd (patch)
tree693ab759df4951e785affa6f2b221a886b3d8b34 /mdoc_macro.c
parent90b416207a9708302ecc3333c3f3aa4c660122b1 (diff)
downloadmandoc-0f10c53eb575a6891b9d903803ee9f23251f36fd.tar.gz
mandoc-0f10c53eb575a6891b9d903803ee9f23251f36fd.tar.zst
mandoc-0f10c53eb575a6891b9d903803ee9f23251f36fd.zip
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@
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 9f8e76be..c1ab436a 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.112 2011/10/16 12:20:34 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.113 2011/12/03 23:59:14 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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++;