From e0ec607735df996bc1aa32aa200a8e3e9bfc8b7f Mon Sep 17 00:00:00 2001 From: mnhock Date: Tue, 8 Dec 2015 18:53:19 +0100 Subject: [PATCH] Use a platform-specific line separator See gh-4707 --- .../authserver/OAuth2AuthorizationServerConfiguration.java | 2 +- .../org/springframework/boot/cli/command/CommandRunner.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java index 7c321c0301..0e3accf788 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java @@ -147,7 +147,7 @@ public class OAuth2AuthorizationServerConfiguration String prefix = "security.oauth2.client"; boolean defaultSecret = this.credentials.isDefaultSecret(); logger.info(String.format( - "Initialized OAuth2 Client\n\n%s.clientId = %s\n%s.secret = %s\n\n", + "Initialized OAuth2 Client%n%n%s.clientId = %s%n%s.secret = %s%n%n", prefix, this.credentials.getClientId(), prefix, defaultSecret ? this.credentials.getClientSecret() : "****")); } diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java index 1d52afd8b1..58381522bd 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java @@ -279,14 +279,14 @@ public class CommandRunner implements Iterable { if (!isOptionCommand(command) && !isHiddenCommand(command)) { String usageHelp = command.getUsageHelp(); String description = command.getDescription(); - Log.info(String.format("\n %1$s %2$-15s\n %3$s", command.getName(), + Log.info(String.format("%n %1$s %2$-15s%n %3$s", command.getName(), (usageHelp == null ? "" : usageHelp), (description == null ? "" : description))); } } Log.info(""); Log.info("Common options:"); - Log.info(String.format("\n %1$s %2$-15s\n %3$s", "-d, --debug", + Log.info(String.format("%n %1$s %2$-15s%n %3$s", "-d, --debug", "Verbose mode", "Print additional status information for the command you are running")); Log.info("");