From 758c2799a1cf12aec4c38f32e3e7796d4d73c5d5 Mon Sep 17 00:00:00 2001 From: David Bolack Date: Sat, 7 Sep 2024 20:40:29 -0500 Subject: [PATCH] That was the wrong way. Lets try this ugly fix. --- themes/V3/5ePHB/snippets/tableOfContents.gen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/V3/5ePHB/snippets/tableOfContents.gen.js b/themes/V3/5ePHB/snippets/tableOfContents.gen.js index 614bb1cfb..92cf6f8e3 100644 --- a/themes/V3/5ePHB/snippets/tableOfContents.gen.js +++ b/themes/V3/5ePHB/snippets/tableOfContents.gen.js @@ -87,7 +87,7 @@ const ToCIterate = (entries, curDepth=0)=>{ } }); } - return toc.length > 0 ? toc : null; + return toc; }; module.exports = function(props){ @@ -95,7 +95,7 @@ module.exports = function(props){ const markdown = _.reduce(TOC, (r, g1, idx1)=>{ r.push(ToCIterate(g1).join('\n')); return r; - }, []).join('\n'); + }, []).join('\n').replace('\n\n', '\n'); return dedent` {{toc,wide