summaryrefslogtreecommitdiff
path: root/doc/exts
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-05-23 20:56:58 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2022-05-24 08:52:32 +0200
commit84abb59aab47d1e5af549bdc51a0711084aeab27 (patch)
treeecafeaf60004ba446fdf684912406da17593e501 /doc/exts
parent23665988d7862577fb3390535c84a7c8aa1c29a9 (diff)
downloadpylint-git-84abb59aab47d1e5af549bdc51a0711084aeab27.tar.gz
[doc] Remove trailing whitespaces in generated all-options.rst
Diffstat (limited to 'doc/exts')
-rw-r--r--doc/exts/pylint_options.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/exts/pylint_options.py b/doc/exts/pylint_options.py
index 0451f7989..894f075fa 100644
--- a/doc/exts/pylint_options.py
+++ b/doc/exts/pylint_options.py
@@ -109,7 +109,9 @@ def _create_checker_section(
checker_table.add(tomlkit.nl())
pylint_tool_table.add(options[0].checker.name.lower(), checker_table)
- toml_string = "\n".join(f" {i}" for i in tomlkit.dumps(toml_doc).split("\n"))
+ toml_string = "\n".join(
+ f" {i}" if i else "" for i in tomlkit.dumps(toml_doc).split("\n")
+ )
checker_string += f"""
.. raw:: html