Commit 9fb42905 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #11674 from izeye:platform-specifc-line-separator

* pr/11674:
  Use the platform-specific line separator
parents 34b19de6 a0f6abff
...@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer ...@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
private void appendReason(StringBuilder message, private void appendReason(StringBuilder message,
InvalidConfigurationPropertyValueException cause) { InvalidConfigurationPropertyValueException cause) {
if (StringUtils.hasText(cause.getReason())) { if (StringUtils.hasText(cause.getReason())) {
message.append(" Validation failed for the following reason:\n\n"); message.append(String.format(" Validation failed for the following "
+ "reason:%n%n"));
message.append(cause.getReason()); message.append(cause.getReason());
} }
else { else {
...@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer ...@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
message.append("\t- In '" + other.getPropertySource() + "'"); message.append("\t- In '" + other.getPropertySource() + "'");
message.append(" with the value '" + other.getValue() + "'"); message.append(" with the value '" + other.getValue() + "'");
other.appendOrigin(message); other.appendOrigin(message);
message.append(".\n"); message.append(String.format(".%n"));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment