From 58e74b4a43bf6e0d03cc6ad02bc4a0c771fb95e8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 6 Apr 2010 07:17:51 +0000 Subject: Fix mdoc bug found by Claus Assmann: `Pf' should be callable. --- mdoc.7 | 2 +- mdoc_macro.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mdoc.7 b/mdoc.7 index b886028a..d5a26b29 100644 --- a/mdoc.7 +++ b/mdoc.7 @@ -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 */ -- cgit