Forum Archive

Character count without spaces

openmedi

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!

ccc
def char_count(s):
    return len([c for c in s if not c.isspace()])
omz

This should work:

http://www.editorial-workflows.com/workflow/5830267646246912/eTbaVMP7e2g

openmedi

Thanks for your help. I even did my own workflow (adaption): http://www.editorial-workflows.com/workflow/5859928086413312/X8gWpLDkBHs