summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man.713
-rw-r--r--man.c2
-rw-r--r--man.h3
-rw-r--r--man_action.c1
-rw-r--r--man_macro.c1
-rw-r--r--man_term.c13
-rw-r--r--man_validate.c1
-rw-r--r--mandoc.16
8 files changed, 28 insertions, 12 deletions
diff --git a/man.7 b/man.7
index a86f25e1..4f790d0e 100644
--- a/man.7
+++ b/man.7
@@ -228,6 +228,7 @@ If a next-line macro is proceded by a block macro, it is ignored.
.It SB Ta n Ta next-line
.It SM Ta n Ta next-line
.It TH Ta >1, <6 Ta current
+.It UC Ta n Ta current
.It br Ta 0 Ta current
.It fi Ta 0 Ta current
.It i Ta n Ta current
@@ -241,6 +242,7 @@ If a next-line macro is proceded by a block macro, it is ignored.
The
.Sq RS ,
.Sq RE ,
+.Sq UC ,
.Sq br ,
.Sq fi ,
.Sq i ,
@@ -249,9 +251,7 @@ The
.Sq r ,
and
.Sq sp
-macros aren't historically part of
-.Nm
-and should not be used. They're included for compatibility.
+macros should not be used. They're included for compatibility.
.
.
.Ss Block Macros
@@ -303,6 +303,7 @@ If a block macro is next-line scoped, it may only be followed by in-line
macros (excluding
.Sq DT ,
.Sq TH ,
+.Sq UC ,
.Sq br ,
.Sq na ,
.Sq sp ,
@@ -357,7 +358,7 @@ render in italics. Whitespace between arguments is omitted in output.
Text is rendered alternately in bold face and roman (the default font).
Whitespace between arguments is omitted in output.
.It DT
-Re-set the tab spacing to 0.5 inches.
+Has no effect. Included for compatibility.
.It HP
Begin a paragraph whose initial output line is left-justified, but
subsequent output lines are indented, with the following syntax:
@@ -466,6 +467,8 @@ buffer to the indentation width. Subsequent output lines are indented.
The indentation width may be set as follows:
.Bd -literal -offset indent
\&.TP [width]
+.It UC
+Has no effect. Included for compatibility.
.Ed
.
.Pp
@@ -484,7 +487,7 @@ End literal mode begun by
Italicise arguments. If no arguments are specified, all subsequent text
is italicised.
.It na
-Don't alignment the right margin.
+Don't align to the right margin.
.It nf
Begin literal mode: all subsequent free-form lines have their end of
line boundaries preserved. May be ended by
diff --git a/man.c b/man.c
index b14f9897..7e69564b 100644
--- a/man.c
+++ b/man.c
@@ -54,7 +54,7 @@ const char *const __man_macronames[MAN_MAX] = {
"R", "B", "I", "IR",
"RI", "na", "i", "sp",
"nf", "fi", "r", "RE",
- "RS", "DT"
+ "RS", "DT", "UC"
};
const char * const *man_macronames = __man_macronames;
diff --git a/man.h b/man.h
index d691d610..b2e93c6e 100644
--- a/man.h
+++ b/man.h
@@ -49,7 +49,8 @@
#define MAN_RE 27
#define MAN_RS 28
#define MAN_DT 29
-#define MAN_MAX 30
+#define MAN_UC 30
+#define MAN_MAX 31
enum man_type {
MAN_TEXT,
diff --git a/man_action.c b/man_action.c
index a86e4bfa..1d197766 100644
--- a/man_action.c
+++ b/man_action.c
@@ -62,6 +62,7 @@ const struct actions man_actions[MAN_MAX] = {
{ NULL }, /* RE */
{ NULL }, /* RS */
{ NULL }, /* DT */
+ { NULL }, /* UC */
};
static time_t man_atotime(const char *);
diff --git a/man_macro.c b/man_macro.c
index 1607777f..9e1760ab 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -66,6 +66,7 @@ const struct man_macro __man_macros[MAN_MAX] = {
{ blk_close, 0 }, /* RE */
{ blk_imp, MAN_EXPLICIT }, /* RS */
{ in_line_eoln, 0 }, /* DT */
+ { in_line_eoln, 0 }, /* UC */
};
const struct man_macro * const man_macros = __man_macros;
diff --git a/man_term.c b/man_term.c
index 7968c1df..5bcf6e6f 100644
--- a/man_term.c
+++ b/man_term.c
@@ -76,6 +76,7 @@ static int pre_SS(DECL_ARGS);
static int pre_TP(DECL_ARGS);
static int pre_br(DECL_ARGS);
static int pre_fi(DECL_ARGS);
+static int pre_ign(DECL_ARGS);
static int pre_nf(DECL_ARGS);
static int pre_r(DECL_ARGS);
static int pre_sp(DECL_ARGS);
@@ -120,7 +121,8 @@ static const struct termact termacts[MAN_MAX] = {
{ pre_r, NULL }, /* r */
{ NULL, NULL }, /* RE */
{ pre_RS, post_RS }, /* RS */
- { NULL, NULL }, /* DT */
+ { pre_ign, NULL }, /* DT */
+ { pre_ign, NULL }, /* UC */
};
#ifdef __linux__
@@ -208,6 +210,15 @@ arg_width(const struct man_node *n)
/* ARGSUSED */
static int
+pre_ign(DECL_ARGS)
+{
+
+ return(0);
+}
+
+
+/* ARGSUSED */
+static int
pre_I(DECL_ARGS)
{
diff --git a/man_validate.c b/man_validate.c
index f5878ef2..1d15615e 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -86,6 +86,7 @@ static const struct man_valid man_valids[MAN_MAX] = {
{ NULL, NULL }, /* RE */
{ NULL, posts_part }, /* RS */
{ NULL, NULL }, /* DT */
+ { NULL, NULL }, /* UC */
};
diff --git a/mandoc.1 b/mandoc.1
index 5160bc9c..995a2779 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -316,12 +316,10 @@ does not assert a prior vertical break, just as it doesn't with
.It
The
.Sq \&na
-and
-.Sq \&Dt
.Xr man 7
-macros in
+macro in
.Fl T Ns Ar ascii
-have no effect.
+has no effect.
.
.It
Words aren't hyphenated.