From f158033fdade3537df3f01e69bc41ba155ee431c Mon Sep 17 00:00:00 2001 From: Andreas Lundblad Date: Tue, 16 Dec 2014 11:28:34 +0100 Subject: [PATCH] 8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 ) Trims whitespace of arguments in OptionOnly, OptionPair and OptionTrip. Reviewed-by: erikj --- make/Javadoc.gmk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/make/Javadoc.gmk b/make/Javadoc.gmk index d68c6f333ce..94078328315 100644 --- a/make/Javadoc.gmk +++ b/make/Javadoc.gmk @@ -231,17 +231,17 @@ endef # 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)