This website requires JavaScript.
Explore
Help
Sign In
Mastodon
/
Toot-Mastodon-CLI-TUI-client-Linux
Watch
1
Star
0
Fork
0
You've already forked Toot-Mastodon-CLI-TUI-client-Linux
mirror of
https://github.com/ihabunek/toot
synced
2024-12-29 02:10:37 +01:00
Code
Issues
Releases
Wiki
Activity
6bb2f98ad2
Toot-Mastodon-CLI-TUI-clien...
/
requirements.txt
4 lines
67 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Move requirements to requirements.txt
2017-04-26 11:16:22 +02:00
requests>=2.13,<3.0
beautifulsoup4>=4.5.0,<5.0
Fix left column padding in timeline with wide characters When the left column contains wide characters (which occupy more than one cell when printed to screen), padding to 30-characters with "{:30}".format() does not work well. This happens for instance when the display name contains unicode characters such as emojis. We fix this by introducing a pad() function in utils module which uses the wcwidth library (https://pypi.org/project/wcwidth/) to compute the length of the text for the column. trunc() function is also adjusted to optionally compute the length of the text to be truncated since, when called from pad(), we now pre-compute this value. We update test for timeline rendering so that the display name now includes an emoji. (Without the fix, the test would not pass as left column would be misaligned.)
2019-01-02 13:22:06 +01:00
wcwidth>=0.1.7,<2.0
Reference in New Issue
Copy Permalink