docs: def _padleft(width, s, has_invisible=True):
      """Flush right.
  
      >>> _padleft(6, '\u044f\u0439\u0446\u0430') == '  \u044f\u0439\u0446\u0430'
      True
  
      """
  
      def impl(val):
          iwidth = width + len(val) - len(_strip_invisible(val)) if has_invisible else width
          fmt = "{0:>%ds}" % iwidth
          return fmt.format(val)
  
      num_lines = s.splitlines()
      return len(num_lines) > 1 and '\n'.join(map(impl, num_lines)) or impl(s)