Mercurial > hg > TextShaper
diff textshaper/whitespace.py @ 26:c23782a7b7ba
more hookups, yo
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 23 Feb 2014 11:41:37 -0800 |
parents | 22c830449604 |
children | 55e0579e2143 |
line wrap: on
line diff
--- a/textshaper/whitespace.py Sun Feb 23 10:59:10 2014 -0800 +++ b/textshaper/whitespace.py Sun Feb 23 11:41:37 2014 -0800 @@ -17,6 +17,7 @@ joiner = ' ' if separator is None else separator return joiner.join(text.strip().split(separator)) + def filename2name(text, whitespace=('_',), replacement=' '): """ convert filename to name