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

Setting indentation to false does nothing #13

Closed
Diegovsky opened this issue Nov 15, 2024 · 0 comments · Fixed by #14
Closed

Setting indentation to false does nothing #13

Diegovsky opened this issue Nov 15, 2024 · 0 comments · Fixed by #14
Assignees
Labels
bug Something isn't working

Comments

@Diegovsky
Copy link

Describe the bug

Setting the value to false does not, in fact, disable indentation.

Version and Installation Info

  • toml.lua version: 0.4.0-0
  • Operating system: Arch Linux x64
  • Installation method: luarocks

To Reproduce

Minimal lua script:

local toml = require'toml'

toml.encodeToFile({
  base = {
    val = 'val',
    nested = {
      nval = 'nval'
    }
  },
}, {file = 'ex.toml', overwrite = true},
  {indentation = false})

Expected behavior

I expeted no indentation to occour.

Additional context

I tried setting the other listed flags to false too. Nothing worked.

@Diegovsky Diegovsky added the bug Something isn't working label Nov 15, 2024
@LebJe LebJe linked a pull request Nov 19, 2024 that will close this issue
@LebJe LebJe closed this as completed in #14 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants