From de6821389604dc5254b285a1ca13b19ffb1905b5 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 17 Sep 2024 19:33:16 +0200 Subject: cleanup --- scripts/tex.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/tex.py') diff --git a/scripts/tex.py b/scripts/tex.py index eebf8ec..e8fc65b 100644 --- a/scripts/tex.py +++ b/scripts/tex.py @@ -60,3 +60,12 @@ def withatletter(*content): cmd('makeatother'), ) +def explist(*items): + out = [] + for item in items: + if isinstance(item, str) or not hasattr(item, '__iter__'): + out.append(item) + else: + out += explist(*item) + return out + -- cgit v1.2.3