Skip to content

coldnew/left-pad.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

leftpad.el

string left pad


License GPLv2

This is emacs-lisp version of left-pad, all test compatible with it.

Install

This package SHOULD-NOT add to melpa, you need to install it manually.

Usage

(require 'leftpad)

(leftpad "foo" 5)
;; => "  foo"

(leftpad "foobar" 6)
;; => "foobar"

(leftpad 1 2 0)
;; => "01"

Function Documentation

(leftpad S LEN &optional CH)

If S is shorter than LEN, pad it with CH on the left.


Markdown README file generated by make-readme-markdown.el

Releases

No releases published

Packages

No packages published