diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 22:44:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 22:44:15 +0000 |
commit | 57a85465cebb415008468ba9f16a7668e9119051 (patch) | |
tree | d342974ea656a6dfa44886c5469b783de62b7078 /term.h | |
parent | 68a2cb887c993621fe7b72e21517d6a260376003 (diff) | |
download | mandoc-57a85465cebb415008468ba9f16a7668e9119051.tar.gz |
Implement the roff(7) .mc (right margin character) request.
The Tcl/Tk manual pages use this extensively.
Delete the TERM_MAXMARGIN hack, it breaks .mc inside .nf;
instead, implement a proper TERMP_BRNEVER flag.
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -36,8 +36,6 @@ enum termfont { TERMFONT__MAX }; -#define TERM_MAXMARGIN 100000 /* FIXME */ - struct eqn; struct roff_meta; struct roff_node; @@ -87,6 +85,10 @@ struct termp { #define TERMP_NOSPLIT (1 << 13) /* Do not break line before .An. */ #define TERMP_SPLIT (1 << 14) /* Break line before .An. */ #define TERMP_NONEWLINE (1 << 15) /* No line break in nofill mode. */ +#define TERMP_BRNEVER (1 << 16) /* Don't even break at maxrmargin. */ +#define TERMP_NOBUF (1 << 17) /* Bypass output buffer. */ +#define TERMP_NEWMC (1 << 18) /* No .mc printed yet. */ +#define TERMP_ENDMC (1 << 19) /* Next break ends .mc mode. */ int *buf; /* Output buffer. */ enum termenc enc; /* Type of encoding. */ enum termfont fontl; /* Last font set. */ @@ -105,6 +107,7 @@ struct termp { int (*hspan)(const struct termp *, const struct roffsu *); const void *argf; /* arg for headf/footf */ + const char *mc; /* Margin character. */ struct termp_ps *ps; }; |