fortran-lang / webpage

New Fortran webpage

Home Page:https://fortran-lang.org/en

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce diff between sphinx-intl and weblate modified po-files

awvwgk opened this issue · comments

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.

@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

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]

Thanks Sir, Will find most apt -w for po-files.