summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-24 05:45:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-24 05:45:04 +0000
commit42509ec027333e856b04e0acd2f35922c44b31d2 (patch)
tree0ebae3b0ea3fa2dc918281dd2101e5292f41c49a
parentdc5e4040dc955e78ad2879289fb61a2ce36e7b78 (diff)
downloadmandoc-42509ec027333e856b04e0acd2f35922c44b31d2.tar.gz
mandoc-42509ec027333e856b04e0acd2f35922c44b31d2.tar.zst
mandoc-42509ec027333e856b04e0acd2f35922c44b31d2.zip
Added `PD' to -man (doesn't do anything, yet).
-rw-r--r--man.79
-rw-r--r--man.c4
-rw-r--r--man.h5
-rw-r--r--man_action.c3
-rw-r--r--man_html.c4
-rw-r--r--man_macro.c3
-rw-r--r--man_term.c5
-rw-r--r--man_validate.c3
8 files changed, 25 insertions, 11 deletions
diff --git a/man.7 b/man.7
index de94f4f7..ffdbdf39 100644
--- a/man.7
+++ b/man.7
@@ -1,4 +1,4 @@
-.\" $Id: man.7,v 1.39 2009/10/19 07:44:30 kristaps Exp $
+.\" $Id: man.7,v 1.40 2009/10/24 05:45:04 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 19 2009 $
+.Dd $Mdocdate: October 24 2009 $
.Dt MAN 7
.Os
.
@@ -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
diff --git a/man.c b/man.c
index 4a64d700..c9a6afeb 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.41 2009/09/23 11:53:45 kristaps Exp $ */
+/* $Id: man.c,v 1.42 2009/10/24 05:45:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;
diff --git a/man.h b/man.h
index 89858e82..0c59d5bc 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.21 2009/10/07 15:03:21 kristaps Exp $ */
+/* $Id: man.h,v 1.22 2009/10/24 05:45:04 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 6ca7f9e2..8730892f 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.19 2009/08/22 09:10:38 kristaps Exp $ */
+/* $Id: man_action.c,v 1.20 2009/10/24 05:45:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 *);
diff --git a/man_html.c b/man_html.c
index 98d4d723..3ff82ae9 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.12 2009/10/22 18:55:32 kristaps Exp $ */
+/* $Id: man_html.c,v 1.13 2009/10/24 05:45:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 865427d7..df649b99 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.28 2009/08/22 09:10:38 kristaps Exp $ */
+/* $Id: man_macro.c,v 1.29 2009/10/24 05:45:05 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;
diff --git a/man_term.c b/man_term.c
index c338033c..e9f4264d 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.43 2009/10/22 18:55:32 kristaps Exp $ */
+/* $Id: man_term.c,v 1.44 2009/10/24 05:45:05 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 6b382956..ae15109a 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -1,4 +1,4 @@
-/* $Id: man_validate.c,v 1.25 2009/10/18 11:36:37 kristaps Exp $ */
+/* $Id: man_validate.c,v 1.26 2009/10/24 05:45:05 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 */
};