Increasing number of unnecessary blank lines in the documentation

Поиск
Список
Период
Сортировка
Искать

Increasing number of unnecessary blank lines in the documentation

От:
Noboru Saito <noborusai@gmail.com>
Дата:
Вложения:
Hi all,

I am a member of the Japanese translation team for the PostgreSQL
documentation. When reviewing translations, we check for blank lines that
may indicate a translation mistake. In practice, however, many of the blank
lines we find are already present in the English source.

I am referring here to blank lines within text flow, rather than blank lines
that separate block elements. For example:

    
    First sentence.

    Second sentence.
    

Assuming that an automatic formatter for the PostgreSQL documentation is not
currently practical, I wrote a script, check-blank-lines.py, to find these
blank lines. The script is not limited to  elements; it reports blank
lines that appear to be unnecessary.

On the current master branch, it reports 35 candidate blank lines in 436
files. That is about 0.1% of the 35,625 blank lines in those files. In my
view, the reported cases are unusual and worth reviewing. The count has also
increased over recent releases:

 version    Candidate blank lines
    15.0                  24
    16.0                  28
    17.0                  29
    18.0                  31
    master                35

In the rendered HTML, these blank lines appear as whitespace, so removing
them would not change the rendered output. In many cases, though, splitting
the content into separate  elements would better express its
structure.

I would like to propose reviewing and correcting the cases reported by the
script, and adding an equivalent check to the documentation build tools.
The check need not use this script as-is; it could provide the same
functionality as part of the existing tooling.

Would this be a useful check to add?

I have attached check-blank-lines.py and its output, blank.log, for
reference.

Regards,
Noboru Saito
FAQ