From 49e29a135b89308ab02b19047b8a6a53c269f9be Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Sat, 14 Mar 2020 21:54:50 -0700
Subject: [PATCH] doc: adjust formatting to make apropos (man -k) work better

* man/Makefile.am $(dist_man1_MANS): Adjust sed substitution
to also remove the space after "GNU". This avoids the single
leading space on each man page title line.  I'm guessing that
interfered with indexing/searching, causing "man -k diff3" to
print this: diff3 (1) - (unknown subject).
Reported by Dan Jacobon in http://bugs.gnu.org/39769.
---
 man/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/Makefile.am b/man/Makefile.am
index ab8da1d..d4cb02a 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -34,7 +34,7 @@ $(dist_man1_MANS): $(SRC_VERSION_C) help2man
 	$(AM_V_GEN)base=`expr $@ : '\(.*\).1'`				\
 	  && test -x $(bin_dir)/$$base					\
 	  && (echo '[NAME]'						\
-              && sed 's@/\* *@@; s/-/\\-/;s/^GNU//; q' $S/$$base.c)	\
+              && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' $S/$$base.c)	\
 	     | PATH="$(bin_dir)$(PATH_SEPARATOR)$$PATH"			\
 	       $(srcdir)/help2man -i - -i $(srcdir)/$$base.x		\
 		 -S '$(PACKAGE) $(VERSION)' $$base > $@-t && mv $@-t $@
-- 
2.25.0.191.gde93cc14ab

