Well, the correct solution is to use the correct escaping algorithm for strings in toml. Sadly the python stdlib stupidly doesnt have a way to write toml despite python blessing toml as its build configuration format. I dont know what's going on in python land these days but they really do some of the most boneheaded things.
This should fix it as a practical matter
https://github.com/kovidgoyal/calibr...a3416b0bacfb8d