mirror of
https://github.com/iKarith/cppo-ng.git
synced 2025-08-13 03:25:05 +00:00
d4d9cc807283b917d937fec5a451b1192d86c227
This is kind of an expensive thing to do unconditionally, but it lets us make multi-line strings fit into the code with less ugliness. Basically, if you're four levels in, you can do something like this: log.warn("""\ There was a problem. It was probably wasn't fatal because this is only a warning, but it is enough to have a multiline string. """) This will print without the indentation. It's not quite as clean as how docutils handles docstrings (allowing the first line to be unindented, hence the line-continuation), but it's still an improvement. If you can improve upon this, please feel free to PR it!
Description
Languages
Python
100%