Thread: pgsql: Doc: add check to detect non-breaking spaces in the docs.

pgsql: Doc: add check to detect non-breaking spaces in the docs.

From
Tatsuo Ishii
Date:
Doc: add check to detect non-breaking spaces in the docs.

There were multiple instances where accidentally adding non-breaking
space (nbsp, U+00A0, 0xc2a0 in UTF-8) to sgml files. This commit adds
additional checking to detect nbsp. You can check the nbsp by:

make -C doc/src/sgml check

or

make -C doc/src/sgml check-nbsp

Authors: Yugo Nagata, Daniel Gustafsson
Reviewed-by: Tatsuo Ishii, Daniel Gustafsson
Discussion: https://postgr.es/m/20240930.153404.202479334310259810.ishii%40postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b7da5c261d1af1a5d6a275e1090b07de3654033

Modified Files
--------------
doc/src/sgml/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


Re: pgsql: Doc: add check to detect non-breaking spaces in the docs.

From
Robert Haas
Date:
On Tue, Oct 8, 2024 at 7:26 AM Tatsuo Ishii <ishii@postgresql.org> wrote:
> Doc: add check to detect non-breaking spaces in the docs.

Please consider that the make-based build system will likely be
removed at some point in the future in favor of the meson build
system.

It doesn't seem like we're super-close to being ready to do that, but
I think it is the plan.

--
Robert Haas
EDB: http://www.enterprisedb.com



Re: pgsql: Doc: add check to detect non-breaking spaces in the docs.

From
Tatsuo Ishii
Date:
> On Tue, Oct 8, 2024 at 7:26 AM Tatsuo Ishii <ishii@postgresql.org> wrote:
>> Doc: add check to detect non-breaking spaces in the docs.
> 
> Please consider that the make-based build system will likely be
> removed at some point in the future in favor of the meson build
> system.
> 
> It doesn't seem like we're super-close to being ready to do that, but
> I think it is the plan.

The particular target is a sub-target of "check" target in
doc/src/sgml/Makefile.  In my understanding the "check" target is
under discussion how to migrate to meson.  Once we decide how to
handle the check target in meson, we can apply it to the nbsp target
too.

Best reagards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp