Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Character count without spaces
-
I'm looking for a way to count characters in my documents that excludes spaces. I checked the workflow directory, but couldn't find anything. Thanks in adavance for any help with this!
-
def char_count(s): return len([c for c in s if not c.isspace()])
-
This should work:
http://www.editorial-workflows.com/workflow/5830267646246912/eTbaVMP7e2g
-
Thanks for your help. I even did my own workflow (adaption): http://www.editorial-workflows.com/workflow/5859928086413312/X8gWpLDkBHs