aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--man.717
-rw-r--r--man.c4
-rw-r--r--man.h5
-rw-r--r--man_action.c3
-rw-r--r--man_macro.c3
-rw-r--r--man_term.c15
-rw-r--r--man_validate.c3
-rw-r--r--mandoc.110
8 files changed, 38 insertions, 22 deletions
diff --git a/man.7 b/man.7
index 3b4751fe..c6d267fe 100644
--- a/man.7
+++ b/man.7
@@ -1,4 +1,4 @@
-.\" $Id: man.7,v 1.35 2009/08/21 12:12:12 kristaps Exp $
+.\" $Id: man.7,v 1.36 2009/08/22 09:10:37 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: August 21 2009 $
+.Dd $Mdocdate: August 22 2009 $
.Dt MAN 7
.Os
.
@@ -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 c503a937..e128d846 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.38 2009/08/22 08:56:16 kristaps Exp $ */
+/* $Id: man.c,v 1.39 2009/08/22 09:10:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 ab66b8ed..8611125e 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.19 2009/08/20 11:51:07 kristaps Exp $ */
+/* $Id: man.h,v 1.20 2009/08/22 09:10:38 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 456a746c..6ca7f9e2 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.18 2009/08/21 12:32:38 kristaps Exp $ */
+/* $Id: man_action.c,v 1.19 2009/08/22 09:10:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 bc2e8886..865427d7 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.27 2009/08/21 13:14:07 kristaps Exp $ */
+/* $Id: man_macro.c,v 1.28 2009/08/22 09:10:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 c3f2c5b9..3e10d34c 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.28 2009/08/21 08:41:05 kristaps Exp $ */
+/* $Id: man_term.c,v 1.29 2009/08/22 09:10:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 a59d4dc3..8c2299cb 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -1,4 +1,4 @@
-/* $Id: man_validate.c,v 1.23 2009/08/21 13:16:16 kristaps Exp $ */
+/* $Id: man_validate.c,v 1.24 2009/08/22 09:10:38 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, NULL }, /* RE */
{ NULL, posts_part }, /* RS */
{ NULL, NULL }, /* DT */
+ { NULL, NULL }, /* UC */
};
diff --git a/mandoc.1 b/mandoc.1
index d2697d01..5d0537b7 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.33 2009/08/20 12:26:15 kristaps Exp $
+.\" $Id: mandoc.1,v 1.34 2009/08/22 09:10:38 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: August 20 2009 $
+.Dd $Mdocdate: August 22 2009 $
.Dt MANDOC 1
.Os
.
@@ -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.