diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 07:17:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 07:17:51 +0000 |
commit | 58e74b4a43bf6e0d03cc6ad02bc4a0c771fb95e8 (patch) | |
tree | 180fb7ed589fac753971d71f65d1850a57ea6dc8 | |
parent | 843605c51859edf6d798bd963d4dd6c5790732fe (diff) | |
download | mandoc-58e74b4a43bf6e0d03cc6ad02bc4a0c771fb95e8.tar.gz |
Fix mdoc bug found by Claus Assmann: `Pf' should be callable.
-rw-r--r-- | mdoc.7 | 2 | ||||
-rw-r--r-- | mdoc_macro.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -860,7 +860,7 @@ then the macro accepts an arbitrary number of arguments. .It Sx \&Ot Ta \&No Ta \&No Ta n .It Sx \&Ox Ta Yes Ta Yes Ta n .It Sx \&Pa Ta Yes Ta Yes Ta n -.It Sx \&Pf Ta \&No Ta Yes Ta 1 +.It Sx \&Pf Ta Yes Ta Yes Ta 1 .It Sx \&Pp Ta \&No Ta \&No Ta 0 .It Sx \&Rv Ta \&No Ta \&No Ta n .It Sx \&Sm Ta \&No Ta \&No Ta 1 diff --git a/mdoc_macro.c b/mdoc_macro.c index 40f70354..8b38efde 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -139,7 +139,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { { in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Nx */ { in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Ox */ { blk_exp_close, MDOC_EXPLICIT | MDOC_CALLABLE | MDOC_PARSED }, /* Pc */ - { in_line_argn, MDOC_PARSED | MDOC_IGNDELIM }, /* Pf */ + { in_line_argn, MDOC_CALLABLE | MDOC_PARSED | MDOC_IGNDELIM }, /* Pf */ { blk_part_exp, MDOC_CALLABLE | MDOC_PARSED | MDOC_EXPLICIT }, /* Po */ { blk_part_imp, MDOC_CALLABLE | MDOC_PARSED }, /* Pq */ { blk_exp_close, MDOC_EXPLICIT | MDOC_CALLABLE | MDOC_PARSED }, /* Qc */ |