entangled / entangled.py

Python port of Entangled
Apache License 2.0
33 stars 7 forks source link

end of line vs return in die configuration toml file #53

Closed gerrie-myburgh closed 1 month ago

gerrie-myburgh commented 1 month ago

You need to put a <cr/lf> after the last line in the TOML config file else the code does not process the last line. An example :

This works:

**

required: the minimum version of Entangled

version = "2.0"

default watch_list is ["*/.md"]

watch_list = ["docs/*/.md"]

default ignore_list is ["**/README.md"]

ignore_list = ["docs/*/ignore.md"]

[[languages]] name = "ts" identifiers = ["ts"] comment = { open = "//" }<cr/lr>

** This does not work: **#required: the minimum version of Entangled version = "2.0" #default watch_list is ["**/*.md"] watch_list = ["docs/**/*.md"] #default ignore_list is ["**/README.md"] ignore_list = ["docs/**/*ignore.md"] [[languages]] name = "ts" identifiers = ["ts"] comment = { open = "//" }**
jhidding commented 1 month ago

Thanks for this issue. That's weird. What system are you on, and what is your Python version?

jhidding commented 1 month ago

Closing for now, if the issue persists, please reopen.