We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec32597 commit 2e46624Copy full SHA for 2e46624
src/textual/markup.py
@@ -5,7 +5,7 @@
5
6
from __future__ import annotations
7
8
-from operator import attrgetter
+from operator import itemgetter
9
10
from textual.css.parse import substitute_references
11
from textual.css.tokenizer import UnexpectedEnd
@@ -420,7 +420,7 @@ def process_text(template_text: str, /) -> str:
420
]
421
)
422
spans.reverse()
423
- spans.sort(key=attrgetter("start"))
+ spans.sort(key=itemgetter(0)) # Zeroth item of Span is 'start' attribute
424
425
content = Content(
426
content_text,
0 commit comments