Slightly tightened up list number spacing

richtext
Dan Schwarz 2023-04-04 19:43:37 -04:00 zatwierdzone przez Ivan Habunek
rodzic 66569b926a
commit e592cbe2ba
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
3 zmienionych plików z 12 dodań i 10 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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