Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Changed Pages calculation to be word_count / 300
Browse files Browse the repository at this point in the history
  • Loading branch information
ncodignotto committed Dec 4, 2014
1 parent 8280c64 commit 4d9208b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions WordCount.py
Expand Up @@ -151,11 +151,7 @@ def display(self, view, on_selection, word_count, char_count, word_count_line, c
status.append('%d Lines' % (view.rowcol(view.size())[0] + 1))

if Pref.enable_count_pages:
visible = view.visible_region()
rows = (view.rowcol(visible.end())[0]) - (view.rowcol(visible.begin())[0]) +1
pages = ceil((view.rowcol(view.size())[0] + 1 ) / rows)
if pages > 1:
status.append('%d Pages' % pages)
status.append(self.makePlural('Pages', word_count / 300))

if Pref.enable_readtime and s >= 1:
status.append("~%dm %ds reading time" % (m, s))
Expand Down

0 comments on commit 4d9208b

Please sign in to comment.