diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-08 23:20:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-08 23:20:03 +0200 |
commit | 23be58145b4aca52a767f19ecb05ed6e6480444a (patch) | |
tree | 908763f7d660dfa4a8b426cb46eaa20b92b80acf /src | |
parent | edd0a72dab9f9dfd208b62e8b6793ce65c67d50e (diff) | |
download | patches-23be58145b4aca52a767f19ecb05ed6e6480444a.tar.gz |
Add src/usr.bin/fmt/patch-single-space
This patch is not for pkgsrc, but for the NetBSD distribution
itself.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/fmt/patch-single-space | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/usr.bin/fmt/patch-single-space b/src/usr.bin/fmt/patch-single-space new file mode 100644 index 0000000..592fa4d --- /dev/null +++ b/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++); |