summaryrefslogtreecommitdiff
path: root/lib/marker.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-10-21 17:01:58 +0200
committerGitHub <noreply@github.com>2024-10-21 17:01:58 +0200
commitc6fecfb0bc91d94f56da43e242b6e59b41058094 (patch)
tree7d33e5a67d97461089ffb6f0dbfeb1fefa95cbd0 /lib/marker.py
parentdbfdb3e8d4fe3787927e8ab536473f9db6264e2b (diff)
Add color sort option for multicolor fonts (#3242)
Diffstat (limited to 'lib/marker.py')
-rw-r--r--lib/marker.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/marker.py b/lib/marker.py
index 91a5862f..6a5f71e6 100644
--- a/lib/marker.py
+++ b/lib/marker.py
@@ -93,3 +93,10 @@ def has_marker(node, marker=list()):
if "marker-start:url(#inkstitch-%s-marker" % m in style:
return True
return False
+
+
+def is_grouped_with_marker(node):
+ for element in node.getparent().iterchildren():
+ if has_marker(element):
+ return True
+ return False