code: def quote(text, limit=1000):
      
  
      lines = text.split('\n')
  
      found = _internal.find_quote_position(lines, _patterns.MAX_WRAP_LINES, limit)
  
      if found != None:
          return [(True, '\n'.join(lines[:found+1])), (False, '\n'.join(lines[found+1:]))]
  
      return [(True, text)]
docs: Takes a plain text message as an argument, returns a list of tuples. The
      first argument of the tuple denotes whether the text should be expanded by
      default. The second argument is the unmodified corresponding text.
  
      Example: [(True, 'expanded text'), (False, '> Some quoted text')]
  
      Unless the limit param is set to None, the text will automatically be quoted
      starting at the line where the limit is reached.