Coder Social home page Coder Social logo

Comments (4)

CDFN avatar CDFN commented on June 12, 2024

Can you try without using SectionSeparator setting and see if it helps?

from okaeri-configs.

Brikster avatar Brikster commented on June 12, 2024

Yes, it helps, but I want to use section separator. It doesn't look like a normal behavior.

from okaeri-configs.

dasavick avatar dasavick commented on June 12, 2024

I don't think SectionSeparator is actually used, probably should have been removed before 4.x release. It was intended to separate root elements, not the header only. This is probably broken since the early beginnings of the library, as this is when ConfigPostprocessor was introduced to add comments in bukkit backend manually.

You may want to look into using empty @Header/@Comment annotation if you really must have the sections separated. Empty value will result with no comment prefix being placed in the line. Header at the moment requires explicit empty string due to no default value.

@Header("welcome")
@Header("welcome")
public class TestConfig extends OkaeriConfig {

    @Comment
    @Comment("hi")
    private String val1 = "a";

    // alternative
    @Comment({"", "hello"})
    private String val2 = "b";
}
# welcome
# welcome

# hi
val1: a

# hello
val: b

from okaeri-configs.

dasavick avatar dasavick commented on June 12, 2024

SectionSeparator is no more (e89a574). Further discussion via #31.

from okaeri-configs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.