diff options
| author | 2020-06-25 23:45:50 -0400 | |
|---|---|---|
| committer | 2020-06-26 03:34:38 -0400 | |
| commit | 98bbae201af3a125663025901eb8586914e99df6 (patch) | |
| tree | 19877e8d11fc2d545869a3266ab3c627ce81077b | |
| parent | Merge branch 'master' into issue926-paginate-long-lines (diff) | |
Account for spaces in LinePaginator._split_remaining_lines()
Diffstat (limited to '')
| -rw-r--r-- | bot/pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/pagination.py b/bot/pagination.py index 30e74b1b1..e41f9a521 100644 --- a/bot/pagination.py +++ b/bot/pagination.py @@ -135,7 +135,7 @@ class LinePaginator(Paginator): if not is_full: if len(word) + reduced_char_count <= max_chars: reduced_words.append(word) - reduced_char_count += len(word) + reduced_char_count += len(word) + 1 else: is_full = True remaining_words.append(word) |