diff options
author | 2018-08-18 15:16:05 +0000 | |
---|---|---|
committer | 2018-08-18 15:16:05 +0000 | |
commit | 9959e90786cfdacc3906cb0e3588bd0d87e44d1d (patch) | |
tree | a71c0619cacc9d2f2864913c16aa20198dda6ce4 | |
parent | end of sentence detection after .ME and .UE, useful for some GNU manuals (diff) | |
download | wireguard-openbsd-9959e90786cfdacc3906cb0e3588bd0d87e44d1d.tar.xz wireguard-openbsd-9959e90786cfdacc3906cb0e3588bd0d87e44d1d.zip |
Unsurprisingly, zero-width non-breaking spaces have... width 0.
-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 |