From 9959e90786cfdacc3906cb0e3588bd0d87e44d1d Mon Sep 17 00:00:00 2001 From: schwarze Date: Sat, 18 Aug 2018 15:16:05 +0000 Subject: [PATCH] Unsurprisingly, zero-width non-breaking spaces have... width 0. --- usr.bin/mandoc/term_ascii.c | 5 ++--- 1 file 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 * 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 -- 2.20.1