def __format_doc(self):
    counter = 0
    doc_list = list(self.doc.replace('\n', ' '))
    for i in range(0, len(doc_list)):
      if doc_list[i] == ' ' and counter > 70:
        doc_list[i] = '\n'
        counter = 0
      counter += 1
    return ''.join(doc_list)
Format the documentation defined for the current method into lines of text.
dataset/ETHPy150Open hiranya911/rest-coder/python-lib/codegen_core.py/Method.__format_doc