| Author | Dave Jarvis <email> |
|---|---|
| Date | 2020-05-19 18:08:57 GMT-0700 |
| Commit | 8f532f6aa095eff4b6e03b66ca9dfdbdac0df3fb |
| Parent | 5307661 |
| import java.io.InputStream; | ||
| -import static com.whitemagicsoftware.yamlp.FileType.*; | ||
| - | ||
| /** | ||
| * @author White Magic Software, Ltd. |
| } | ||
| + /** | ||
| + * Prevent inserting new lines. | ||
| + */ | ||
| + @Override | ||
| + protected DumperOptions buildDumperOptions( | ||
| + final int jsonFeatures, | ||
| + final int yamlFeatures, | ||
| + final DumperOptions.Version version ) { | ||
| + final DumperOptions options = super.buildDumperOptions( | ||
| + jsonFeatures, | ||
| + yamlFeatures, | ||
| + version ); | ||
| + | ||
| + options.setSplitLines( false ); | ||
| + | ||
| + return options; | ||
| + } | ||
| + | ||
| private YamlParser getYamlParser() { | ||
| return yamlParser; |
| Delta | 18 lines added, 2 lines removed, 16-line increase |
|---|