diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-24 05:45:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-24 05:45:04 +0000 |
commit | 1dd07b15a1d771e23ba0d050538a2e13f10239f6 (patch) | |
tree | 346735b152c6beb2d9ba0bcacc5f2f7ca463b69b | |
parent | 22600541da017c5a8c6de3b241d99a0450041385 (diff) | |
download | mandoc-1dd07b15a1d771e23ba0d050538a2e13f10239f6.tar.gz |
Added `PD' to -man (doesn't do anything, yet).
-rw-r--r-- | man.7 | 5 | ||||
-rw-r--r-- | man.c | 2 | ||||
-rw-r--r-- | man.h | 3 | ||||
-rw-r--r-- | man_action.c | 1 | ||||
-rw-r--r-- | man_html.c | 2 | ||||
-rw-r--r-- | man_macro.c | 1 | ||||
-rw-r--r-- | man_term.c | 3 | ||||
-rw-r--r-- | man_validate.c | 1 |
8 files changed, 16 insertions, 2 deletions
@@ -290,6 +290,7 @@ If a next-line macro is proceded by a block macro, it is ignored. .It Sx \&I Ta n Ta next-line .It Sx \&IB Ta n Ta current .It Sx \&IR Ta n Ta current +.It Sx \&PD Ta n Ta current .It Sx \&R Ta n Ta next-line .It Sx \&RB Ta n Ta current .It Sx \&RI Ta n Ta current @@ -308,6 +309,7 @@ If a next-line macro is proceded by a block macro, it is ignored. . .Pp The +.Sx \&PD , .Sx \&RS , .Sx \&RE , .Sx \&UC , @@ -370,6 +372,7 @@ No closure refers to an explicit block closing macro. If a block macro is next-line scoped, it may only be followed by in-line macros (excluding .Sx \&DT , +.Sx \&PD , .Sx \&TH , .Sx \&UC , .Sx \&br , @@ -525,6 +528,8 @@ If .Va width is specified, it's saved for later paragraph left-margins; if unspecified, the saved or default width is used. +.Ss \&PD +Has no effect. Included for compatibility. .Ss \&UC Has no effect. Included for compatibility. .Ss \&br @@ -56,7 +56,7 @@ const char *const __man_macronames[MAN_MAX] = { "R", "B", "I", "IR", "RI", "na", "i", "sp", "nf", "fi", "r", "RE", - "RS", "DT", "UC" + "RS", "DT", "UC", "PD" }; const char * const *man_macronames = __man_macronames; @@ -50,7 +50,8 @@ #define MAN_RS 28 #define MAN_DT 29 #define MAN_UC 30 -#define MAN_MAX 31 +#define MAN_PD 31 +#define MAN_MAX 32 enum man_type { MAN_TEXT, diff --git a/man_action.c b/man_action.c index 1d197766..6e608310 100644 --- a/man_action.c +++ b/man_action.c @@ -63,6 +63,7 @@ const struct actions man_actions[MAN_MAX] = { { NULL }, /* RS */ { NULL }, /* DT */ { NULL }, /* UC */ + { NULL }, /* PD */ }; static time_t man_atotime(const char *); @@ -30,6 +30,7 @@ #include "main.h" /* TODO: preserve ident widths. */ +/* FIXME: have PD set the default vspace width. */ #define INDENT 5 #define HALFINDENT 3 @@ -104,6 +105,7 @@ static const struct htmlman mans[MAN_MAX] = { { man_RS_pre, NULL }, /* RS */ { man_ign_pre, NULL }, /* DT */ { man_ign_pre, NULL }, /* UC */ + { man_ign_pre, NULL }, /* PD */ }; diff --git a/man_macro.c b/man_macro.c index 9e1760ab..9c290e45 100644 --- a/man_macro.c +++ b/man_macro.c @@ -67,6 +67,7 @@ const struct man_macro __man_macros[MAN_MAX] = { { blk_imp, MAN_EXPLICIT }, /* RS */ { in_line_eoln, 0 }, /* DT */ { in_line_eoln, 0 }, /* UC */ + { in_line_eoln, 0 }, /* PD */ }; const struct man_macro * const man_macros = __man_macros; @@ -32,6 +32,8 @@ #define INDENT 7 #define HALFINDENT 3 +/* FIXME: have PD set the default vspace width. */ + struct mtermp { int fl; #define MANT_LITERAL (1 << 0) @@ -141,6 +143,7 @@ static const struct termact termacts[MAN_MAX] = { { pre_RS, post_RS }, /* RS */ { pre_ign, NULL }, /* DT */ { pre_ign, NULL }, /* UC */ + { pre_ign, NULL }, /* PD */ }; diff --git a/man_validate.c b/man_validate.c index 8b292336..85a6f387 100644 --- a/man_validate.c +++ b/man_validate.c @@ -86,6 +86,7 @@ static const struct man_valid man_valids[MAN_MAX] = { { NULL, posts_part }, /* RS */ { NULL, NULL }, /* DT */ { NULL, NULL }, /* UC */ + { NULL, NULL }, /* PD */ }; |