pylint-dev/pylint

Documentation has incorrect rendering of spaces for the indent-string option

Open

#8,392 opened on Mar 6, 2023

View on GitHub
聽(9 comments)聽(1 reaction)聽(1 assignee)Python聽(4,978 stars)聽(1,059 forks)batch import
Documentation :green_book:Good first issueHacktoberfestHelp wanted 馃檹Needs PR

Description

Bug description

In the documentation for the indent string option the code

# String used as indentation unit. This is usually "  " (4 spaces) or "\t" (1
# tab).
indent-string="    "  

Is rendered incorrectly due to markdown or html folding multiple whitespaces into one. As such the documentation currently appears as: image

This can create a bit of confusion when attempting to change this option, as seen in https://stackoverflow.com/q/54117674/7052741

Configuration

No response

Command used

N/A

Pylint output

N/A

Expected behavior

Something along the lines of:

--indent-string

String used as indentation unit. This is usually "聽聽聽聽 " (4 spaces) or "\t" (1 tab). Default: "聽聽聽聽"

Pylint version

Appears on the newest version of Pylint taken from GitHub

OS / Environment

No response

Additional dependencies

No response

Contributor guide

Documentation has incorrect rendering of spaces for the indent-string option 路 pylint-dev/pylint#8392 | Good First Issue