summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 07:26:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 07:26:35 +0000
commitf690e8836e76c3e77c127e546135ba106d53d2a7 (patch)
tree997f03a680582338cba2d325364fe1d9475cbb65
parentc2a10113a9a63c28a9785d8792a825c1239b6dd8 (diff)
downloadmandoc-f690e8836e76c3e77c127e546135ba106d53d2a7.tar.gz
Fixed email address in manual AUTHOR reference.
Set max right margin to 80 columns (schwarze@openbsd.org). Fixed centre-field heading position (schwarze@openbsd.org). Also fixed -Tman centre-field.
-rw-r--r--man.32
-rw-r--r--man.72
-rw-r--r--man_term.c2
-rw-r--r--mandoc.12
-rw-r--r--mandoc_char.72
-rw-r--r--mdoc.32
-rw-r--r--mdoc.72
-rw-r--r--mdoc_term.c2
-rw-r--r--term.c2
9 files changed, 9 insertions, 9 deletions
diff --git a/man.3 b/man.3
index 396f168e..d3f57ba1 100644
--- a/man.3
+++ b/man.3
@@ -274,4 +274,4 @@ man_free(man);
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
diff --git a/man.7 b/man.7
index 8d875d29..a1068f3c 100644
--- a/man.7
+++ b/man.7
@@ -195,7 +195,7 @@ macros.
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
.\" SECTION
.Sh CAVEATS
Do not use this language. Use
diff --git a/man_term.c b/man_term.c
index f463cd84..f537be74 100644
--- a/man_term.c
+++ b/man_term.c
@@ -495,7 +495,7 @@ print_head(struct termp *p, const struct man_meta *meta)
meta->title, meta->msec);
p->offset = 0;
- p->rmargin = (p->maxrmargin - strlen(buf)) / 2;
+ p->rmargin = (p->maxrmargin - strlen(buf) + 1) / 2;
p->flags |= TERMP_NOBREAK | TERMP_NOSPACE;
term_word(p, title);
diff --git a/mandoc.1 b/mandoc.1
index 5beca70d..7f6691a8 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -248,7 +248,7 @@ To page manuals to the terminal:
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
.\" SECTION
.Sh CAVEATS
The
diff --git a/mandoc_char.7 b/mandoc_char.7
index b92b0615..4f41d842 100644
--- a/mandoc_char.7
+++ b/mandoc_char.7
@@ -477,4 +477,4 @@ mode.
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
diff --git a/mdoc.3 b/mdoc.3
index 13c8b7bb..34277ab6 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -297,7 +297,7 @@ mdoc_free(mdoc);
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
.\" SECTION
.Sh CAVEATS
.Bl -dash -compact
diff --git a/mdoc.7 b/mdoc.7
index cfe45bf8..33e2d849 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -531,7 +531,7 @@ is callable.
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
.\" SECTION
.Sh CAVEATS
There are several ambiguous parts of mdoc.
diff --git a/mdoc_term.c b/mdoc_term.c
index 077d8f7e..7140dc81 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -485,7 +485,7 @@ print_head(struct termp *p, const struct mdoc_meta *meta)
meta->title, meta->msec);
p->offset = 0;
- p->rmargin = (p->maxrmargin - strlen(buf)) / 2;
+ p->rmargin = (p->maxrmargin - strlen(buf) + 1) / 2;
p->flags |= TERMP_NOBREAK | TERMP_NOSPACE;
term_word(p, title);
diff --git a/term.c b/term.c
index 55b32d6e..bc161bbb 100644
--- a/term.c
+++ b/term.c
@@ -106,7 +106,7 @@ term_alloc(enum termenc enc)
if (NULL == (p = malloc(sizeof(struct termp))))
err(1, "malloc");
bzero(p, sizeof(struct termp));
- p->maxrmargin = 78;
+ p->maxrmargin = 80;
p->enc = enc;
return(p);
}