mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Slightly tightened up list number spacing
This commit is contained in:
parent
66569b926a
commit
e592cbe2ba
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ publish :
|
||||
test:
|
||||
pytest -v
|
||||
flake8
|
||||
vermin --target=3.6 --no-tips --violations --exclude-regex venv/.* .
|
||||
vermin --target=3.6 --no-tips --violations --exclude-regex 'venv/.*' .
|
||||
|
||||
coverage:
|
||||
coverage erase
|
||||
|
@ -60,12 +60,12 @@ PALETTE = [
|
||||
|
||||
('blockquote', 'light gray', ''),
|
||||
|
||||
('h1', 'yellow, bold', ''),
|
||||
('h2', 'dark red, bold', ''),
|
||||
('h3', 'yellow, bold', ''),
|
||||
('h4', 'yellow, bold', ''),
|
||||
('h5', 'yellow, bold', ''),
|
||||
('h6', 'yellow, bold', ''),
|
||||
('h1', 'white, bold', ''),
|
||||
('h2', 'white, bold', ''),
|
||||
('h3', 'white, bold', ''),
|
||||
('h4', 'white, bold', ''),
|
||||
('h5', 'white, bold', ''),
|
||||
('h6', 'white, bold', ''),
|
||||
|
||||
('class_mention_hashtag', 'light cyan,bold', ''),
|
||||
|
||||
|
@ -110,13 +110,15 @@ class ContentParser:
|
||||
# used in anchor tags
|
||||
# Classes to blacklist: "invisible" used in Akkoma
|
||||
# anchor titles
|
||||
style_name = tag.name
|
||||
|
||||
if "class" in tag.attrs:
|
||||
clss = tag.attrs["class"]
|
||||
if len(clss) > 0:
|
||||
style_name = "class_" + "_".join(clss)
|
||||
return style_name
|
||||
|
||||
style_name = tag.name
|
||||
|
||||
# Tag handlers start here.
|
||||
# Tags not explicitly listed are "supported" by
|
||||
# rendering as text.
|
||||
@ -244,7 +246,7 @@ class ContentParser:
|
||||
txt = urwid.Text(("li", "*"))
|
||||
|
||||
columns = urwid.Columns(
|
||||
[txt, ("weight", 9999, markup)], dividechars=1, min_width=4
|
||||
[txt, ("weight", 9999, markup)], dividechars=1, min_width=3
|
||||
)
|
||||
widgets.append(columns)
|
||||
i += 1
|
||||
|
Loading…
Reference in New Issue
Block a user