changeset 1258:fbf5c12d061a

8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 ) Summary: Trims whitespace of arguments in OptionOnly, OptionPair and OptionTrip. Reviewed-by: erikj
author alundblad
date Tue, 16 Dec 2014 11:28:34 +0100
parents 75ad722b5f04
children 49f961cf19ad
files make/Javadoc.gmk
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/make/Javadoc.gmk	Mon Dec 15 13:09:39 2014 -0800
+++ b/make/Javadoc.gmk	Tue Dec 16 11:28:34 2014 +0100
@@ -231,17 +231,17 @@
 
 # Common echo of option
 define OptionOnly # opt
-	if [ "$1" != "" ] ; then \
-		$(PRINTF) "%s\n" "$1"; \
+	if [ "$(strip $1)" != "" ] ; then \
+		$(PRINTF) "%s\n" "$(strip $1)"; \
 	fi
 endef
 
 define OptionPair # opt arg
-	$(PRINTF) "%s '%s'\n" "$1" '$2'
+	$(PRINTF) "%s '%s'\n" "$(strip $1)" '$(strip $2)'
 endef
 
 define OptionTrip # opt arg arg
-	$(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3'
+	$(PRINTF) "%s '%s' '%s'\n" "$(strip $1)" '$(strip $2)' '$(strip $3)'
 endef
 
 # Core api bottom argument (with special sauce)