Reduce diff between sphinx-intl and weblate modified po-files
awvwgk opened this issue · comments
Sebastian Ehlert commented
Updating the po-files with the sphinx-intl
results in a huge diff due to changes in the maximum line length. We should investigate whether there is an option to get this consistent between weblate and sphinx-intl to avoid generating useless diffs.
Henil Panchal commented
@awvwgk We would be able to set specific line length using black , what should be the apt line length ? ( black default is 88).
Thanks and Reagrds,
Henil Shalin Panchal
Sebastian Ehlert commented
Found the -w
option for sphinx-intl
, we should find a length which minimizes the change in the po-files.
❯ sphinx-intl update --help
Usage: sphinx-intl update [OPTIONS]
...
Options:
...
-w, --line-width <WIDTH> The maximum line width for the po files, 0 or a
negative number disable line wrapping [default:
76]
Henil Panchal commented
Thanks Sir, Will find most apt -w for po-files.