diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-11 07:26:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-11 07:26:35 +0000 |
commit | f690e8836e76c3e77c127e546135ba106d53d2a7 (patch) | |
tree | 997f03a680582338cba2d325364fe1d9475cbb65 | |
parent | c2a10113a9a63c28a9785d8792a825c1239b6dd8 (diff) | |
download | mandoc-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.3 | 2 | ||||
-rw-r--r-- | man.7 | 2 | ||||
-rw-r--r-- | man_term.c | 2 | ||||
-rw-r--r-- | mandoc.1 | 2 | ||||
-rw-r--r-- | mandoc_char.7 | 2 | ||||
-rw-r--r-- | mdoc.3 | 2 | ||||
-rw-r--r-- | mdoc.7 | 2 | ||||
-rw-r--r-- | mdoc_term.c | 2 | ||||
-rw-r--r-- | term.c | 2 |
9 files changed, 9 insertions, 9 deletions
@@ -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 . @@ -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 @@ -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); @@ -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 . @@ -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 @@ -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); @@ -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); } |