Skip to content

Add option to HOCON loader to put spacing between statements #564

Description

@spektrsoyuz

Currently, the HoconConfigurationLoader does not support an option to save a configuration node with a white space character between statements.

Example of the loader I am using:

private HoconConfigurationLoader createLoader(final Path file) {
        return HoconConfigurationLoader.builder()
                .prettyPrinting(true)
                .defaultOptions(opts -> opts.shouldCopyDefaults(true))
                .path(file)
                .build();
}

Desired outcome:
prefix = "my prefix"

Actual outcome:
prefix="my prefix"

Having a way to enable/customize this would allow for better formatting for HOCON files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions