Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Inline Table bug #51

@Splamy

Description

@Splamy

I'm using 0.9.0 from nuget

This small example:

public static void Main()
{
	var table = Toml.Create();
	var root = table.Add("Root", new object(), TomlTable.TableTypes.Default);
	root.Add("A", new object(), TomlTable.TableTypes.Default);
	root.Add("B", new object(), TomlTable.TableTypes.Inline);
	Toml.WriteFile(table, "test.toml");
}

produces:

[Root]

[Root.A]
B = {  }

which now means B has the path Root.A.B

I would expect:

[Root]
B = {  }

[Root.A]

where B was added to Root and has the path Root.B.

When using Default instead of Inline it correctly produces

[Root]

[Root.A]

[Root.B]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions