How to count chatacters?

36 views
Skip to first unread message

Rob

unread,
Dec 8, 2019, 1:47:10 PM12/8/19
to leo-editor
I see line, column and word counts in the lower left info bar. How would I get a character count for a node?

Rob...

Rob

unread,
Dec 8, 2019, 1:58:30 PM12/8/19
to leo-editor
In Notepad++ for Windows, there's 'length' which provides this count (I think).

Rob...

lewis

unread,
Dec 8, 2019, 5:44:17 PM12/8/19
to leo-editor
This prints the headline, and then prints body character count. Note - a newline is counted as a character.

g.es_print(p.h, len(p.b))

Regards
Lewis

Rob

unread,
Dec 8, 2019, 9:14:47 PM12/8/19
to leo-editor
Excellent, that's what I need. Thanks!

Rob...

PS Figured it would be easy...
Reply all
Reply to author
Forward
0 new messages