parameters: (self, lines)
return_statement: return newlines
docstring: Loop through lines and find, set, and remove footnote definitions.
  
          Keywords:
  
          * lines: A list of lines of text
  
          Return: A list of lines of text with footnote definitions removed.
docstring_summary: Loop through lines and find, set, and remove footnote definitions.
docstring_tokens: Loop through lines and find set and remove footnote definitions .
function: def run(self, lines):
          """
          Loop through lines and find, set, and remove footnote definitions.
  
          Keywords:
  
          * lines: A list of lines of text
  
          Return: A list of lines of text with footnote definitions removed.
  
          """
          newlines = []
          i = 0
          while True:
              m = DEF_RE.match(lines[i])
              if m:
                  fn, _i = self.detectTabbed(lines[i+1:])
                  fn.insert(0, m.group(2))
                  i += _i-1  # skip past footnote
                  self.footnotes.setFootnote(m.group(1), "\n".join(fn))
              else:
                  newlines.append(lines[i])
              if len(lines) > i+1:
                  i += 1
              else:
                  break
          return newlines
function_tokens: def run ( self , lines ) : newlines = [ ] i = 0 while True : m = DEF_RE . match ( lines [ i ] ) if m : fn , _i = self . detectTabbed ( lines [ i + 1 : ] ) fn . insert ( 0 , m . group ( 2 ) ) i += _i - 1 # skip past footnote self . footnotes . setFootnote ( m . group ( 1 ) , "\n" . join ( fn ) ) else : newlines . append ( lines [ i ] ) if len ( lines ) > i + 1 : i += 1 else : break return newlines