def _indent_lines(s, indentation):
  """Indent lines in s with the given indentation."""
  lines = []
  for line in s.strip().split('\n'):
    stripped = line.strip()
    if stripped:
      lines.append(' ' * indentation + stripped)
    else:
      lines.append(stripped)

  return '\n'.join(lines)