From fc49c6e3ba5081593e4d9af7e04bfb84e97a39f5 Mon Sep 17 00:00:00 2001 From: metagn Date: Sun, 24 Dec 2023 17:22:10 +0300 Subject: fix spurious indent and newlines in rendering of nkRecList (#23121) Rendering of `nkRecList` produces an indent and adds a new line at the end. However for things like case object `of`/`else` branches or `when` branches this is already done, so this produces 2 indents and an extra new line. Instead, just add an indent in the place where the indent that `nkRecList` produces is needed, for the rendering of the final node of `nkObjectTy`. There doesn't seem to be a need to add the newline. Before: ```nim case x*: bool of true: y*: int of false: nil ``` After: ```nim case x*: bool of true: y*: int of false: nil ``` --- nimdoc/extlinks/project/expected/main.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nimdoc/extlinks/project') diff --git a/nimdoc/extlinks/project/expected/main.html b/nimdoc/extlinks/project/expected/main.html index 1a58ea2ac..f46d72115 100644 --- a/nimdoc/extlinks/project/expected/main.html +++ b/nimdoc/extlinks/project/expected/main.html @@ -95,8 +95,7 @@

Types

-
A = object
-  
+
A = object
-- cgit 1.4.1-2-gfad0