1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00

Slightly tightened up list number spacing

This commit is contained in:
Dan Schwarz 2023-04-04 19:43:37 -04:00 committed by Ivan Habunek
parent 66569b926a
commit e592cbe2ba
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
3 changed files with 12 additions and 10 deletions

View File

@ -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

View File

@ -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', ''),

View File

@ -110,12 +110,14 @@ 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
return style_name
style_name = tag.name
# Tag handlers start here.
# Tags not explicitly listed are "supported" by
@ -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