def _strip_footnote_definitions(self, text):
less_than_tab = self.tab_width - <NUM_LIT:1><EOL>footnote_def_re = re.compile(r'''<STR_LIT>''' % (less_than_tab, self.tab_width, self.tab_width),<EOL>re.X | re.M)<EOL>return footnote_def_re.sub(self._extract_footnote_def_sub, text)<EOL>
A footnote definition looks like this:

            [^note-id]: Text of the note.

                May include one or more indented paragraphs.

        Where,
        - The 'note-id' can be pretty much anything, though typically it
          is the number of the footnote.
        - The first paragraph may start on the next line, like so:

            [^note-id]:
                Text of the note.