From 1283bae1be73937e23c899a05372c6763742b12f Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 31 Oct 2017 12:25:23 +0000 Subject: Fix yaml generation Fix yaml generation for missing space for multiline. Change-Id: I62348cdef6032c96ba54aeedfb1b9f8675d9276c Issue-ID: CLI-55 Signed-off-by: subhash kumar singh --- .../src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validate/sample-yaml-generator/src/main') diff --git a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java index df4c3f6e..5da8ce22 100644 --- a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java +++ b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java @@ -57,10 +57,10 @@ public class SampleYamlGenerator { if (value.isEmpty()) { return; } - writer.write("|\n"); + writer.write(" |\n"); nTab++; String[] lines = value.split("\n"); - long skipLines = debug ? 12 : 0; + long skipLines = debug ? 11 : 0; Arrays.stream(lines).skip(skipLines ).forEach(line -> writer.write(printTabs() + line + "\n")); // NOSONAR } -- cgit 1.2.3-korg