Set max right margin to 80 columns (schwarze@openbsd.org).
Fixed centre-field heading position (schwarze@openbsd.org).
Also fixed -Tman centre-field.
-.\" $Id: man.3,v 1.4 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: man.3,v 1.5 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MAN 3
.Os
.\" SECTION
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
-.\" $Id: man.7,v 1.11 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: man.7,v 1.12 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MAN 7
.Os
.\" SECTION
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
-/* $Id: man_term.c,v 1.9 2009/06/10 20:18:43 kristaps Exp $ */
+/* $Id: man_term.c,v 1.10 2009/06/11 07:26:35 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
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);
-.\" $Id: mandoc.1,v 1.17 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: mandoc.1,v 1.18 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MANDOC 1
.Os
.\" SECTION
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
.\" SECTION
.Sh CAVEATS
The
-.\" $Id: mandoc_char.7,v 1.5 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: mandoc_char.7,v 1.6 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MANDOC_CHAR 7
.Os
.\" SECTION
The
.Nm
utility was written by
-.An Kristaps Dzonsons Aq kristaps@openbsd.org .
+.An Kristaps Dzonsons Aq kristaps@kth.se .
-.\" $Id: mdoc.3,v 1.29 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: mdoc.3,v 1.30 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MDOC 3
.Os
.\" SECTION
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
-.\" $Id: mdoc.7,v 1.23 2009/06/10 20:18:43 kristaps Exp $
+.\" $Id: mdoc.7,v 1.24 2009/06/11 07:26:35 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 10 2009 $
+.Dd $Mdocdate: June 11 2009 $
.Dt MDOC 7
.Os
.\" SECTION
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.
-/* $Id: mdoc_term.c,v 1.7 2009/06/10 20:18:43 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.8 2009/06/11 07:26:35 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
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);
-/* $Id: term.c,v 1.75 2009/06/10 20:18:44 kristaps Exp $ */
+/* $Id: term.c,v 1.76 2009/06/11 07:26:35 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
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);
}