aboutsummaryrefslogtreecommitdiff
path: root/src/usr.bin/fmt/patch-single-space
blob: 592fa4d7b7b665088c28c274cb4e6950f335f0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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++);