]> granicus.if.org Git - graphviz/commitdiff
arrows: arrow_length_box: change to 2-space indentation
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 18 Oct 2022 18:43:18 +0000 (20:43 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 18 Oct 2022 18:58:25 +0000 (20:58 +0200)
This is newly added code that should conform to the clang-format
style.

lib/common/arrows.c

index 80ef590f1a002fa60187ac854d2818a1f7ff01df..a0c2414a4e24aae66aa554dd45b892f4298389e3 100644 (file)
@@ -987,11 +987,11 @@ static double arrow_length_normal(double lenfact, double arrowsize,
 
 static double arrow_length_box(double lenfact, double arrowsize,
                               double penwidth, int flag) {
-    (void)flag;
+  (void)flag;
 
-    // The `box` arrow shape begins with a polyline which doesn't extend
-    // visually beyond its starting point, so we only have to take penwidth
-    // into account at the end point.
+  // The `box` arrow shape begins with a polyline which doesn't extend
+  // visually beyond its starting point, so we only have to take penwidth
+  // into account at the end point.
 
-    return lenfact * arrowsize * ARROW_LENGTH + penwidth / 2;
+  return lenfact * arrowsize * ARROW_LENGTH + penwidth / 2;
 }