From 2d5555400d86169d517b240e00949fdb36146f23 Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Fri, 26 Nov 2021 16:50:44 +1100 Subject: [PATCH] fixed pretty print depth issues --- pretty.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/pretty.lua b/pretty.lua index 016c0e4..4e18638 100644 --- a/pretty.lua +++ b/pretty.lua @@ -81,6 +81,7 @@ function pretty._process(input, config, processing_state) processing_state.depth = processing_state.depth + 1 if processing_state.depth > depth then + processing_state.depth = processing_state.depth - 1 return "{...}" end