aboutsummaryrefslogtreecommitdiffstats
path: root/validate/sample-yaml-generator/src
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-10-31 12:25:23 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2017-10-31 12:25:23 +0000
commit1283bae1be73937e23c899a05372c6763742b12f (patch)
tree23fee5b2ab4fa86b18d57df9317b48ed76ed9515 /validate/sample-yaml-generator/src
parent6d3a4e3530a8e17d46641c96ec8ef8e3e822dea2 (diff)
Fix yaml generation
Fix yaml generation for missing space for multiline. Change-Id: I62348cdef6032c96ba54aeedfb1b9f8675d9276c Issue-ID: CLI-55 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'validate/sample-yaml-generator/src')
-rw-r--r--validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java4
1 files changed, 2 insertions, 2 deletions
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
}