Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstring tooltip bullet points not indented correctly if header is present #6278

Closed
bshoshany opened this issue Aug 18, 2024 · 2 comments
Closed
Assignees
Labels
docstrings needs repro Issue has not been reproduced yet

Comments

@bshoshany
Copy link

bshoshany commented Aug 18, 2024

(I'm reusing the duplicate issue I accidentally opened to report a different bug, since I cannot delete the original issue)

Steps to reproduce:

Write the following Python program:

def test():
    """
    #### Header
    * Level 1
        * Level 2
        * Level 2
    """

Hover over the function. The indentation of levels 1 and 2 will be the same.

image

@bshoshany bshoshany changed the title Command 'Python: Report Issue...' resulted in an error Docstring tooltip bullet points not indented correctly if header is present Aug 18, 2024
@anthonykim1 anthonykim1 transferred this issue from microsoft/vscode-python Aug 19, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Aug 19, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Aug 19, 2024

If you enable our new restructured text support, it should work:

Image

@bshoshany
Copy link
Author

I can confirm that this solution works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docstrings needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants