From c6fecfb0bc91d94f56da43e242b6e59b41058094 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:01:58 +0200 Subject: Add color sort option for multicolor fonts (#3242) --- lib/marker.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/marker.py') 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 -- cgit v1.2.3