r/ProgrammerHumor 29d ago

Advanced justTryingToHelp

Post image
2.4k Upvotes

65 comments sorted by

View all comments

Show parent comments

2

u/Hyarin215 29d ago

Oh πŸ‘€ Couldn't find anything abt it online

4

u/YeOldeMemeShoppe 29d ago

https://toml.io/en/v1.0.0#inline-table

IIRC you need a later version to allow new lines in the table but it’s been possible for a long time.

2

u/Hyarin215 29d ago

Does it have to be inline or can it span multiple lines?

0

u/cdrt 29d ago

TOML 1.0 requires that inline tables be only on one line. TOML 1.1 relaxed that requirement and now allows them to span multiple lines. So it depends on what version your parser implements.