Owen W. Taylor 8e4b838
From b0d9d7fae7752f3d5f15b15d08986a8e602c832f Mon Sep 17 00:00:00 2001
Owen W. Taylor 8e4b838
From: "Owen W. Taylor" <otaylor@fishsoup.net>
Owen W. Taylor 8e4b838
Date: Thu, 1 Jun 2017 18:03:28 -0400
Owen W. Taylor 8e4b838
Subject: [PATCH] Switch graphviz files to use HTML-style labels
Owen W. Taylor 8e4b838
Owen W. Taylor 8e4b838
With recent versions of graphviz, generation of the diagrams in the documentation
Owen W. Taylor 8e4b838
fails with:
Owen W. Taylor 8e4b838
Owen W. Taylor 8e4b838
 /usr/bin/dot -Tpng -oxml/x-architecture.png dot/x-architecture.gv
Owen W. Taylor 8e4b838
 Warning: flat edge between adjacent nodes one of which has a record shape - replace records with HTML-like labels
Owen W. Taylor 8e4b838
   Edge xserver -> comp
Owen W. Taylor 8e4b838
 Error: getsplinepoints: no spline points available for edge (xserver,comp)
Owen W. Taylor 8e4b838
 Error: lost xserver comp edge
Owen W. Taylor 8e4b838
 Error: lost xserver comp edge
Owen W. Taylor 8e4b838
 Error: lost comp xserver edge
Owen W. Taylor 8e4b838
 Error: lost comp xserver edge
Owen W. Taylor 8e4b838
Owen W. Taylor 8e4b838
http://www.graphviz.org/content/i-havent-been-able-render-these-files-graphviz-226 indicates
Owen W. Taylor 8e4b838
that the error message basically means that the authors of graphviz consider record-style
Owen W. Taylor 8e4b838
labels to be deprecated and are no longer fixing errors with them. This patch changes
Owen W. Taylor 8e4b838
the labels to be in the HTML style, which seems to require duplicating style between all
Owen W. Taylor 8e4b838
the nodes, but it's not like these files are often edited.
Owen W. Taylor 8e4b838
Owen W. Taylor 8e4b838
The result is not exactly the same but is quite similar.
Owen W. Taylor 8e4b838
---
Owen W. Taylor 8e4b838
 doc/doxygen/dot/wayland-architecture.gv | 13 +++++--------
Owen W. Taylor 8e4b838
 doc/doxygen/dot/x-architecture.gv       | 17 ++++++++---------
Owen W. Taylor 8e4b838
 2 files changed, 13 insertions(+), 17 deletions(-)
Owen W. Taylor 8e4b838
Owen W. Taylor 8e4b838
diff --git a/doc/doxygen/dot/wayland-architecture.gv b/doc/doxygen/dot/wayland-architecture.gv
Owen W. Taylor 8e4b838
index 2d5db84..f2c3507 100644
Owen W. Taylor 8e4b838
--- a/doc/doxygen/dot/wayland-architecture.gv
Owen W. Taylor 8e4b838
+++ b/doc/doxygen/dot/wayland-architecture.gv
Owen W. Taylor 8e4b838
@@ -9,21 +9,18 @@ digraph arch_wayland {
Owen W. Taylor 8e4b838
     ]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     node[
Owen W. Taylor 8e4b838
-        shape="Mrecord",
Owen W. Taylor 8e4b838
         color=none,
Owen W. Taylor 8e4b838
-        fillcolor="#ffbc00",
Owen W. Taylor 8e4b838
-        style="filled",
Owen W. Taylor 8e4b838
+        margin=0,
Owen W. Taylor 8e4b838
         fontname="DejaVu Sans",
Owen W. Taylor 8e4b838
         fontsize="18",
Owen W. Taylor 8e4b838
    ]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
-    c1 [label="Wayland Client", URL="#c1"]
Owen W. Taylor 8e4b838
-    c2 [label="Wayland Client", URL="#c2"]
Owen W. Taylor 8e4b838
+    c1 [label=<
Wayland Client
>, URL="#c1"]
Owen W. Taylor 8e4b838
+    c2 [label=<
Wayland Client
>, URL="#c2"]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
-    comp [tooltip="Wayland Compositor", label="|{|Wayland\nCompositor|}|", URL="#comp"]
Owen W. Taylor 8e4b838
-
Owen W. Taylor 8e4b838
-    impl [tooltip="KMS evdev Kernel", label="|{{KMS|evdev}|Kernel}|", URL="#impl"]
Owen W. Taylor 8e4b838
+    comp [tooltip="Wayland Compositor", label=<

Wayland
Compositor

>, URL="#comp"]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
+    impl [tooltip="KMS evdev Kernel", label=<
KMSevdev
Kernel
>, URL="#impl"]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     c1 -> comp [taillabel="③", labeldistance=2.5, URL="#step_3"];
Owen W. Taylor 8e4b838
     c2 -> comp;
Owen W. Taylor 8e4b838
diff --git a/doc/doxygen/dot/x-architecture.gv b/doc/doxygen/dot/x-architecture.gv
Owen W. Taylor 8e4b838
index 4ea49bf..b223d1d 100644
Owen W. Taylor 8e4b838
--- a/doc/doxygen/dot/x-architecture.gv
Owen W. Taylor 8e4b838
+++ b/doc/doxygen/dot/x-architecture.gv
Owen W. Taylor 8e4b838
@@ -9,28 +9,27 @@ digraph arch_x {
Owen W. Taylor 8e4b838
     ]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     node[
Owen W. Taylor 8e4b838
-        shape="Mrecord",
Owen W. Taylor 8e4b838
+        shape="none",
Owen W. Taylor 8e4b838
         color=none,
Owen W. Taylor 8e4b838
-        fillcolor="#ffbc00",
Owen W. Taylor 8e4b838
-        style="filled",
Owen W. Taylor 8e4b838
+        margin=0,
Owen W. Taylor 8e4b838
         fontname="DejaVu Sans",
Owen W. Taylor 8e4b838
         fontsize="18",
Owen W. Taylor 8e4b838
     ]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     {
Owen W. Taylor 8e4b838
         rank=same;
Owen W. Taylor 8e4b838
-        c1 [label="X Client", URL="#c1"]
Owen W. Taylor 8e4b838
-        c3 [label="X Client", URL="#c3"]
Owen W. Taylor 8e4b838
+        c1 [label=<
X Client
>, URL="#c1"]
Owen W. Taylor 8e4b838
+        c3 [label=<
X Client
>, URL="#c3"]
Owen W. Taylor 8e4b838
     }
Owen W. Taylor 8e4b838
-    c2 [label="X Client", URL="#c2"]
Owen W. Taylor 8e4b838
+    c2 [label=<
X Client
>, URL="#c2"]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     {
Owen W. Taylor 8e4b838
         rank=same;
Owen W. Taylor 8e4b838
-        xserver [tooltip="X Server", label="|{|X Server|}|", URL="#xserver"]
Owen W. Taylor 8e4b838
-        comp [tooltip="Compositor", label="|{|Compositor|}|", URL="#comp"]
Owen W. Taylor 8e4b838
+        xserver [tooltip="X Server", label=<

X Server

>, URL="#xserver"]
Owen W. Taylor 8e4b838
+        comp [tooltip="Compositor", label=<

Compositor

>, URL="#comp"]
Owen W. Taylor 8e4b838
     }
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
-    impl [tooltip="KMS evdev Kernel", label="|{{KMS|evdev}|Kernel}|", URL="#impl"]
Owen W. Taylor 8e4b838
+    impl [tooltip="KMS evdev Kernel", label=<
KMSevdev
Kernel
>, URL="#impl"]
Owen W. Taylor 8e4b838
 
Owen W. Taylor 8e4b838
     c1 -> xserver [taillabel="③", labeldistance=2, URL="#step_3"];
Owen W. Taylor 8e4b838
     c2 -> xserver;
Owen W. Taylor 8e4b838
-- 
Owen W. Taylor 8e4b838
2.13.0
Owen W. Taylor 8e4b838