diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-15 21:09:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-15 21:09:54 +0000 |
commit | 891288ca199a2ca5b7e63cce216e3b787acee9a1 (patch) | |
tree | 9fbabc36bcf5fcbe7d36a2beb2d3ce125dacca2b /usr.bin/mandoc/term.h | |
parent | a86b8c718ed5aa62b68637b33de2c8db5d4a1f45 (diff) |
More systematic output width handling by Joerg Sonnenberger:
* save and restore the output width when switching to MANT_LITERAL
* add an argument to ascii_alloc to specify the output width
* set the default output width to 80 minus 2 characters
* OpenBSD local: set the output width to 65 characters for -man
Diffstat (limited to 'usr.bin/mandoc/term.h')
-rw-r--r-- | usr.bin/mandoc/term.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/term.h b/usr.bin/mandoc/term.h index e497fba1512..3e5a49c854a 100644 --- a/usr.bin/mandoc/term.h +++ b/usr.bin/mandoc/term.h @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.18 2010/05/14 19:52:43 schwarze Exp $ */ +/* $Id: term.h,v 1.19 2010/05/15 21:09:53 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -32,6 +32,7 @@ enum termfont { #define TERM_MAXMARGIN 100000 /* FIXME */ struct termp { + size_t defrmargin; /* Right margin of the device.. */ size_t rmargin; /* Current right margin. */ size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ |