Skip to content

Commit 54c6ec3

Browse files
[doc] Remove trailing whitespaces in generated all-options.rst
1 parent 6981f7b commit 54c6ec3

File tree

2 files changed

+166
-165
lines changed

2 files changed

+166
-165
lines changed

doc/exts/pylint_options.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def _create_checker_section(
109109
checker_table.add(tomlkit.nl())
110110

111111
pylint_tool_table.add(options[0].checker.name.lower(), checker_table)
112-
toml_string = "\n".join(f" {i}" for i in tomlkit.dumps(toml_doc).split("\n"))
112+
toml_string = "\n".join(
113+
f" {i}" if i else "" for i in tomlkit.dumps(toml_doc).split("\n")
114+
)
113115
checker_string += f"""
114116
.. raw:: html
115117

0 commit comments

Comments
 (0)