docs: def pad_char(text: str, width: int, char: str = '\n') -> str:
      """Pads a text until length width."""
      dis = width - len(text)
      if dis < 0:
          raise ValueError
      if dis > 0:
          text += char * dis
      return text