From 28867a2496e644184ad264445aaedc212ef8650f Mon Sep 17 00:00:00 2001 From: Alex Zepeda Date: Fri, 30 Jul 2021 21:54:24 -0700 Subject: [PATCH] Contour: Print no-op parts for alternate debug format --- content/src/outline.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/src/outline.rs b/content/src/outline.rs index 589d3cd64..0772bb932 100644 --- a/content/src/outline.rs +++ b/content/src/outline.rs @@ -922,7 +922,12 @@ impl Contour { impl Debug for Contour { fn fmt(&self, formatter: &mut Formatter) -> fmt::Result { - for (segment_index, segment) in self.iter(ContourIterFlags::IGNORE_CLOSE_SEGMENT) + let contour_flags = match formatter.alternate() { + false => ContourIterFlags::IGNORE_CLOSE_SEGMENT, + true => ContourIterFlags::empty(), + }; + + for (segment_index, segment) in self.iter(contour_flags) .enumerate() { if segment_index == 0 { write!(