Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigDocument seems to break include required() statements #766

Open
mikehearn opened this issue May 2, 2022 · 0 comments
Open

ConfigDocument seems to break include required() statements #766

mikehearn opened this issue May 2, 2022 · 0 comments

Comments

@mikehearn
Copy link

The following test fails:

        val doc = ConfigDocumentFactory.parseString("""
            include required("a.conf")
            include required("b.conf")
            
            abc = 1
        """.trimIndent())
        val result = doc.withValueText("abc", "2").render()
        assertEquals("""
            include required("a.conf")
            include required("b.conf")
            
            abc = 2            
        """.trimIndent(), result)

The problem is the closing bracket gets chopped - you end up with:

include required("a.conf"
include required("b.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant