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:
|
test:
|
||||||
pytest -v
|
pytest -v
|
||||||
flake8
|
flake8
|
||||||
vermin --target=3.6 --no-tips --violations --exclude-regex venv/.* .
|
vermin --target=3.6 --no-tips --violations --exclude-regex 'venv/.*' .
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
coverage erase
|
coverage erase
|
||||||
|
@ -60,12 +60,12 @@ PALETTE = [
|
|||||||
|
|
||||||
('blockquote', 'light gray', ''),
|
('blockquote', 'light gray', ''),
|
||||||
|
|
||||||
('h1', 'yellow, bold', ''),
|
('h1', 'white, bold', ''),
|
||||||
('h2', 'dark red, bold', ''),
|
('h2', 'white, bold', ''),
|
||||||
('h3', 'yellow, bold', ''),
|
('h3', 'white, bold', ''),
|
||||||
('h4', 'yellow, bold', ''),
|
('h4', 'white, bold', ''),
|
||||||
('h5', 'yellow, bold', ''),
|
('h5', 'white, bold', ''),
|
||||||
('h6', 'yellow, bold', ''),
|
('h6', 'white, bold', ''),
|
||||||
|
|
||||||
('class_mention_hashtag', 'light cyan,bold', ''),
|
('class_mention_hashtag', 'light cyan,bold', ''),
|
||||||
|
|
||||||
|
@ -110,12 +110,14 @@ class ContentParser:
|
|||||||
# used in anchor tags
|
# used in anchor tags
|
||||||
# Classes to blacklist: "invisible" used in Akkoma
|
# Classes to blacklist: "invisible" used in Akkoma
|
||||||
# anchor titles
|
# anchor titles
|
||||||
style_name = tag.name
|
|
||||||
if "class" in tag.attrs:
|
if "class" in tag.attrs:
|
||||||
clss = tag.attrs["class"]
|
clss = tag.attrs["class"]
|
||||||
if len(clss) > 0:
|
if len(clss) > 0:
|
||||||
style_name = "class_" + "_".join(clss)
|
style_name = "class_" + "_".join(clss)
|
||||||
return style_name
|
return style_name
|
||||||
|
|
||||||
|
style_name = tag.name
|
||||||
|
|
||||||
# Tag handlers start here.
|
# Tag handlers start here.
|
||||||
# Tags not explicitly listed are "supported" by
|
# Tags not explicitly listed are "supported" by
|
||||||
@ -244,7 +246,7 @@ class ContentParser:
|
|||||||
txt = urwid.Text(("li", "*"))
|
txt = urwid.Text(("li", "*"))
|
||||||
|
|
||||||
columns = urwid.Columns(
|
columns = urwid.Columns(
|
||||||
[txt, ("weight", 9999, markup)], dividechars=1, min_width=4
|
[txt, ("weight", 9999, markup)], dividechars=1, min_width=3
|
||||||
)
|
)
|
||||||
widgets.append(columns)
|
widgets.append(columns)
|
||||||
i += 1
|
i += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user