From: schwarze Date: Sat, 18 Aug 2018 15:16:05 +0000 (+0000) Subject: Unsurprisingly, zero-width non-breaking spaces have... width 0. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9959e90786cfdacc3906cb0e3588bd0d87e44d1d;p=openbsd Unsurprisingly, zero-width non-breaking spaces have... width 0. --- 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 * Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze @@ -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