def addlines(clines, inloc, inline):
    """This function inserts a new line into a provided location in a 'str' object list.

  Args:
      clines: A 'str' list object, the lines of text to add a new line into.
      inloc: A numeric, the line number where the new line is to be inserted directly 'after'.
      inline: A 'str', the character string which is the new line to insert.

  Returns:
    a 'str' list object: The results of inserting the new line.
  """
    import itertools
    if isinstance(inline, str):
        inline = [inline]
    if inloc == 0:
        clines = [inline, clines]
    elif inloc > len(clines):
        clines = [clines, inline]
    else:
        clines = [clines[0:inloc], inline, clines[inloc:len(clines)]]
    clines = list(itertools.chain(*clines))
    return clines
