summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 19:56:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 19:56:14 +0000
commitf47e03b373e587439a46f9d3b3c6f332e025b778 (patch)
tree8f43e2252d24f232ff9132509a0e0f960d8b8a41
parent0d31fe8e373641961cf6174f5eda01fafe311ad3 (diff)
downloadmandoc-f47e03b373e587439a46f9d3b3c6f332e025b778.tar.gz
mandoc-f47e03b373e587439a46f9d3b3c6f332e025b778.tar.zst
mandoc-f47e03b373e587439a46f9d3b3c6f332e025b778.zip
`An' now callable, historic use noted in mdoc.7 (joerg@netbsd.org).
-rw-r--r--mdoc.77
-rw-r--r--mdoc_macro.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/mdoc.7 b/mdoc.7
index 0d5dd99f..025a758c 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.24 2009/06/11 07:26:35 kristaps Exp $
+.\" $Id: mdoc.7,v 1.25 2009/06/11 19:56:14 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
@@ -393,7 +393,7 @@ then the macro accepts an arbitrary number of arguments.
.It \&.Os Ta \&No Ta \&No Ta n
.It \&.Pp Ta \&No Ta \&No Ta 0
.It \&.Ad Ta Yes Ta Yes Ta n
-.It \&.An Ta \&No Ta Yes Ta n
+.It \&.An Ta Yes Ta Yes Ta n
.It \&.Ar Ta Yes Ta Yes Ta n
.It \&.Cd Ta Yes Ta \&No Ta >0
.It \&.Cm Ta Yes Ta Yes Ta n
@@ -479,7 +479,8 @@ compatibility with these systems.
.Bl -dash -compact
.\" LIST-ITEM
.It
-.Sq \&.Fo
+.Sq \&.An ,
+.Sq \&.Fo ,
and
.Sq \&.St
historically weren't always callable. Both are now correctly callable.
diff --git a/mdoc_macro.c b/mdoc_macro.c
index e918a648..151c023d 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.9 2009/06/10 20:18:43 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.10 2009/06/11 19:56:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -89,7 +89,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ blk_exp_close, MDOC_EXPLICIT }, /* El */
{ blk_full, MDOC_PARSED }, /* It */
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Ad */
- { in_line, MDOC_PARSED }, /* An */
+ { in_line, MDOC_CALLABLE | MDOC_PARSED }, /* An */
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Ar */
{ in_line_eoln, MDOC_CALLABLE }, /* Cd */
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Cm */