diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index d657a2b25..bc58d0fc7 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -30,7 +30,7 @@ slf4j = "2.0.6"
spock = "2.3-groovy-4.0"
spring-asciidoctor = "0.6.1"
sunjaxb = "4.0.2"
-svgbuilder = "0.4.1"
+svgbuilder = "0.5.0"
[libraries]
activation = { module = "javax.activation:activation", version.ref = "activation" }
diff --git a/grooves-diagrams/src/test/resources/ConcurrentEvents.esdiag.svg b/grooves-diagrams/src/test/resources/ConcurrentEvents.esdiag.svg
index f2b1fe2ee..650ecd05f 100644
--- a/grooves-diagrams/src/test/resources/ConcurrentEvents.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/ConcurrentEvents.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
John Lennon
-
+
diff --git a/grooves-diagrams/src/test/resources/DisjoinExample.esdiag.svg b/grooves-diagrams/src/test/resources/DisjoinExample.esdiag.svg
index 758af6bcb..d454373d4 100644
--- a/grooves-diagrams/src/test/resources/DisjoinExample.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/DisjoinExample.esdiag.svg
@@ -118,7 +118,7 @@
Department
1
Science
-
+
@@ -139,7 +139,7 @@
Department
2
Command
-
+
@@ -155,7 +155,7 @@
Employee
5
Mr Spock
-
+
diff --git a/grooves-diagrams/src/test/resources/JoinExample.esdiag.svg b/grooves-diagrams/src/test/resources/JoinExample.esdiag.svg
index 758af6bcb..d454373d4 100644
--- a/grooves-diagrams/src/test/resources/JoinExample.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/JoinExample.esdiag.svg
@@ -118,7 +118,7 @@
Department
1
Science
-
+
@@ -139,7 +139,7 @@
Department
2
Command
-
+
@@ -155,7 +155,7 @@
Employee
5
Mr Spock
-
+
diff --git a/grooves-diagrams/src/test/resources/MergeAggregates.esdiag.svg b/grooves-diagrams/src/test/resources/MergeAggregates.esdiag.svg
index 0f8b37773..3be86fb4e 100644
--- a/grooves-diagrams/src/test/resources/MergeAggregates.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/MergeAggregates.esdiag.svg
@@ -118,7 +118,7 @@
Patient
4
Farrokh Bulsara
-
+
@@ -146,7 +146,7 @@
Patient
5
Freddie Mercury
-
+
diff --git a/grooves-diagrams/src/test/resources/MergeAggregatesEffective.esdiag.svg b/grooves-diagrams/src/test/resources/MergeAggregatesEffective.esdiag.svg
index 9ed355b2a..554167487 100644
--- a/grooves-diagrams/src/test/resources/MergeAggregatesEffective.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/MergeAggregatesEffective.esdiag.svg
@@ -118,7 +118,7 @@
Patient
4
Farrokh Bulsara
-
+
diff --git a/grooves-diagrams/src/test/resources/ParallelEvents.esdiag.svg b/grooves-diagrams/src/test/resources/ParallelEvents.esdiag.svg
index 8ac8cf352..f6b91b82c 100644
--- a/grooves-diagrams/src/test/resources/ParallelEvents.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/ParallelEvents.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
John Lennon
-
+
@@ -146,7 +146,7 @@
Patient
1
Ringo Starr
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertEvent.esdiag.svg b/grooves-diagrams/src/test/resources/RevertEvent.esdiag.svg
index 764db9f99..78e33a54c 100644
--- a/grooves-diagrams/src/test/resources/RevertEvent.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertEvent.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
Paul McCartney
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertEventEffective.esdiag.svg b/grooves-diagrams/src/test/resources/RevertEventEffective.esdiag.svg
index 5be0e4fbb..031819e03 100644
--- a/grooves-diagrams/src/test/resources/RevertEventEffective.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertEventEffective.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
Paul McCartney
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertMergeAfter.esdiag.svg b/grooves-diagrams/src/test/resources/RevertMergeAfter.esdiag.svg
index 9c72f796a..ba98c05b0 100644
--- a/grooves-diagrams/src/test/resources/RevertMergeAfter.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertMergeAfter.esdiag.svg
@@ -118,7 +118,7 @@
Patient
4
Tina Fey
-
+
@@ -151,7 +151,7 @@
Patient
5
Sarah Palin
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertMergeBefore.esdiag.svg b/grooves-diagrams/src/test/resources/RevertMergeBefore.esdiag.svg
index 9f9f47a7e..7240e4ee9 100644
--- a/grooves-diagrams/src/test/resources/RevertMergeBefore.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertMergeBefore.esdiag.svg
@@ -118,7 +118,7 @@
Patient
4
Tina Fey
-
+
@@ -146,7 +146,7 @@
Patient
5
Sarah Palin
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertOnRevert.esdiag.svg b/grooves-diagrams/src/test/resources/RevertOnRevert.esdiag.svg
index c5178fbf1..cd2f54a55 100644
--- a/grooves-diagrams/src/test/resources/RevertOnRevert.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertOnRevert.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
Paul McCartney
-
+
diff --git a/grooves-diagrams/src/test/resources/RevertOnRevertEffective.esdiag.svg b/grooves-diagrams/src/test/resources/RevertOnRevertEffective.esdiag.svg
index 665961beb..b4ece8c84 100644
--- a/grooves-diagrams/src/test/resources/RevertOnRevertEffective.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/RevertOnRevertEffective.esdiag.svg
@@ -118,7 +118,7 @@
Patient
1
Paul McCartney
-
+
diff --git a/grooves-diagrams/src/test/resources/SimpleEvents.esdiag.svg b/grooves-diagrams/src/test/resources/SimpleEvents.esdiag.svg
index a24b56216..a3c1bd1e5 100644
--- a/grooves-diagrams/src/test/resources/SimpleEvents.esdiag.svg
+++ b/grooves-diagrams/src/test/resources/SimpleEvents.esdiag.svg
@@ -118,7 +118,7 @@
Type
ID
Description
-
+