collective / i18ndude

i18ndude performs various tasks related to ZPT's, Python Scripts and i18n.
https://pypi.org/project/i18ndude
4 stars 9 forks source link

Comments: Keep leading spaces stable #92

Closed reinhardt closed 2 years ago

reinhardt commented 2 years ago

Don't strip leading whitespace. Don't add space when writing.

Closes #91

mauritsvanrees commented 2 years ago

@reinhardt Can you fix the tests please? The GitHub Actions were automatically deactivated because of inactivity in this repo. I have re-enabled them and they fail due to your changes.

Locally, you can run tox -e py39, or tox -p auto to run all tox testing environments in parallel.

mauritsvanrees commented 2 years ago

The tests seem to show that not all white space stay the same. Maybe it is just the very first line or lines in a po file. See the test-en.po file, which starts with # Translation of test.pot to English and in the tests this gets an extra space now.