def _SplitAndPad(s):
    """Splits a string on newlines, and pads the lines to be the same width."""
    split_string = s.split('\n')
    width = max(len(stringpiece) for stringpiece in split_string) + 1

    padded_strings = [
        stringpiece.ljust(width, ' ') for stringpiece in split_string
    ]
    return padded_strings