def add_note(<EOL>self,<EOL>note):
self.refresh<EOL>note = note.strip()<EOL>newNote = self._get_object(<EOL>regex=re.compile(<EOL>r'<STR_LIT>', re.UNICODE),<EOL>objectType="<STR_LIT>",<EOL>content=note<EOL>)<EOL>oldContent = self.to_string(indentLevel=<NUM_LIT:1>)<EOL>newContent = self.to_string(<EOL>indentLevel=<NUM_LIT:1>)<EOL>if self.parent:<EOL><INDENT>self.parent._update_document_tree(<EOL>oldContent=oldContent,<EOL>newContent=newContent<EOL>)<EOL><DEDENT>self.notes = newNote + self.notes<EOL>self.content = self.content.replace(self.to_string(indentLevel=<NUM_LIT:0>, title=False), self.to_string(<EOL>indentLevel=<NUM_LIT:0>, title=False))<EOL>doc = self<EOL>while doc.parent:<EOL><INDENT>doc = doc.parent<EOL><DEDENT>doc.refresh<EOL>return newNote[<NUM_LIT:0>]<EOL>
*Add a note to this taskpaper object*

        **Key Arguments:**
            - ``note`` -- the note (string)

        **Return:**
            - None

        **Usage:**

            To add a note to a document, project or task object:

            .. code-block:: python

                newNote = doc.add_note(And another note with a link http://www.thespacedoctor.co.uk")