diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-11 07:23:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-11 07:23:04 +0000 |
commit | 4320829a9974a95546e94df94a6b70b6b4831a68 (patch) | |
tree | e3ea0982f86fbdfebf5723d37be88cb45b4fad26 /term.c | |
parent | 7172afe8498d9da876e08e39960b11f31467e9ca (diff) | |
download | mandoc-4320829a9974a95546e94df94a6b70b6b4831a68.tar.gz |
Teach -Tps to ignore backspace-encoding by using a one-char buffer and a
simple state machine. This paves the way for decorated text.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -603,10 +603,7 @@ encode(struct termp *p, const char *word, size_t sz) * character by character. */ - if (TERMTYPE_PS == p->type) { - buffera(p, word, sz); - return; - } else if (TERMFONT_NONE == (f = term_fonttop(p))) { + if (TERMFONT_NONE == (f = term_fonttop(p))) { buffera(p, word, sz); return; } |