Skip to content

Docstring that ends with""" rather than \n""" completely breaks rendering #120

Description

@Pet3ris

Hi There,

Thanks for this awesome tool. Running into an issue where these docstrings break rendering:

def add(x, y):
  """This should be a simple docstring
  However, it turns everything following it into a comment."""
  return x + y

Only this works:

def add(x, y):
  """This should be a simple docstring
  However, it turns everything following it into a comment.
  """
  return x + y

Given this particular formatting is not picked up on by pylint, I assume it is valid and this is a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions