import textwrap


def wrapText(text, indent, width=100):
  """
    Utility to wrap text to an appropriate length and indentation
    @ In, text, text to wrap
    @ In, indent, str, string to use as an indent
    @ In, width, int, optional, number of characters including indent to wrap at
    @ Out, msg, str, modified text
  """
  msg = textwrap.dedent(text)
  msg = textwrap.fill(msg, width=width, initial_indent=indent, subsequent_indent=indent)
  return msg