Mercurial > hg > TextShaper
comparison 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 |
comparison
equal
deleted
inserted
replaced
25:a43d0ad17c29 | 26:c23782a7b7ba |
---|---|
15 """ | 15 """ |
16 if joiner is None: | 16 if joiner is None: |
17 joiner = ' ' if separator is None else separator | 17 joiner = ' ' if separator is None else separator |
18 return joiner.join(text.strip().split(separator)) | 18 return joiner.join(text.strip().split(separator)) |
19 | 19 |
20 | |
20 def filename2name(text, whitespace=('_',), replacement=' '): | 21 def filename2name(text, whitespace=('_',), replacement=' '): |
21 """ | 22 """ |
22 convert filename to name | 23 convert filename to name |
23 """ | 24 """ |
24 | 25 |