From 9ebbad626103891779c0e1c3304226a8967cf0a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 16 Jul 2021 09:35:46 +0200 Subject: Move src to usr directory --- usr/src/usr.bin/fmt/patch-single-space | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 usr/src/usr.bin/fmt/patch-single-space (limited to 'usr/src') diff --git a/usr/src/usr.bin/fmt/patch-single-space b/usr/src/usr.bin/fmt/patch-single-space new file mode 100644 index 0000000..592fa4d --- /dev/null +++ b/usr/src/usr.bin/fmt/patch-single-space @@ -0,0 +1,21 @@ +$NetBSD$ + +(Build with `USETOOLS=never make'.) + +--- fmt.c.orig 2017-10-13 00:11:56.000000000 +0000 ++++ fmt.c +@@ -402,13 +402,10 @@ split(const wchar_t line[], int add_spac + } + + /* +- * Guarantee a space at end of line. Two spaces after end of +- * sentence punctuation. ++ * Guarantee a space at end of line. + */ + if (*cp == '\0' && add_space) { + buf_putc(&word, ' '); +- if (strchr(".:!", cp[-1])) +- buf_putc(&word, ' '); + } + while (*cp == ' ') + buf_putc(&word, *cp++); -- cgit v1.2.3