code: def find_quote_position(lines, max_wrap_lines, limit=None):
      
  
      for n in range(len(lines)):
          end, typ = find_pattern_on_line(lines, n, max_wrap_lines)
          if typ:
              return end
          if limit != None and n >= limit-1:
              return n
  
      return None
docs: Returns the (ending) line number of a quoting pattern. If a limit is given
      and the limit is reached, the limit is returned.