diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-18 15:16:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-18 15:16:06 +0000 |
commit | e4db786aa9fa653e86bca1abb9384db883e57d05 (patch) | |
tree | ad075da3e15040f810376b38080625c69fcc9d2d /usr.bin/mandoc/term_ascii.c | |
parent | 2afcf9cb575693b946c0c5f116079aab04edc8d7 (diff) |
Unsurprisingly, zero-width non-breaking spaces have... width 0.
Diffstat (limited to 'usr.bin/mandoc/term_ascii.c')
-rw-r--r-- | usr.bin/mandoc/term_ascii.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/term_ascii.c b/usr.bin/mandoc/term_ascii.c index 3e4eacca34d..481e0e5da3f 100644 --- a/usr.bin/mandoc/term_ascii.c +++ b/usr.bin/mandoc/term_ascii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term_ascii.c,v 1.46 2018/05/20 21:37:11 schwarze Exp $ */ +/* $OpenBSD: term_ascii.c,v 1.47 2018/08/18 15:16:05 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -184,8 +184,7 @@ terminal_sepline(void *arg) static size_t ascii_width(const struct termp *p, int c) { - - return 1; + return c != ASCII_BREAK; } void |