pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
842 stars 144 forks source link

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

Open Pet3ris opened 2 years ago

Pet3ris commented 2 years ago

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.