diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 19:33:16 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 19:33:16 +0200 |
commit | de6821389604dc5254b285a1ca13b19ffb1905b5 (patch) | |
tree | c834453b063684cc29d76b41e7b62e7c95137900 /scripts/tex.py | |
parent | 1df61d671706436c17e23bc9dcdc3bbd0f14a167 (diff) |
cleanup
Diffstat (limited to 'scripts/tex.py')
-rw-r--r-- | scripts/tex.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 + |