diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 14:38:34 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 14:38:34 +0000 |
commit | ae85c53a20e295bcb9eecc8a2d24955c35392839 (patch) | |
tree | 7d3d87904670286bd0a6abf5b99ccafe1e05cbfa /mdoc_term.c | |
parent | 7585ce47e0934f9b0eabd76bf7000d02950e6e1c (diff) | |
download | mandoc-ae85c53a20e295bcb9eecc8a2d24955c35392839.tar.gz |
Add mode for -Tlocale. This mode, with this commit, behaves exactly
like -Tascii. While adding this, inline term_alloc() (was a one-liner),
remove some switches around the terminal encoding for the symbol table
(unnecessary), and split out ascii_alloc() into ascii_init(), which is
also called from locale_init().
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 0ccacd66..bf2997fa 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -264,14 +264,7 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc) p->tabwidth = term_len(p, 5); if (NULL == p->symtab) - switch (p->enc) { - case (TERMENC_ASCII): - p->symtab = mchars_alloc(); - break; - default: - abort(); - /* NOTREACHED */ - } + p->symtab = mchars_alloc(); n = mdoc_node(mdoc); m = mdoc_meta(mdoc); |