From 7c581e6d1bf25630c32eae2a25c65f4225a0c92b Mon Sep 17 00:00:00 2001 From: NovemLinguae Date: Thu, 22 Aug 2024 08:28:54 -0700 Subject: [PATCH] remove extra line breaks between banners --- src/modules/core.js | 3 +++ tests/test-core.js | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/core.js b/src/modules/core.js index 44c927a3..141aa080 100644 --- a/src/modules/core.js +++ b/src/modules/core.js @@ -1747,6 +1747,9 @@ } } + // Remove extra line breaks between banners + talkText = talkText.replace( /\}\}\n{2,}\{\{/g, '}}\n{{' ); + return { talkText: talkText, countOfWikiProjectsAdded: wikiProjectsToAdd.length, diff --git a/tests/test-core.js b/tests/test-core.js index bf51a7f7..742bd9fc 100644 --- a/tests/test-core.js +++ b/tests/test-core.js @@ -208,7 +208,6 @@ I have a question. Can you help answer it? –[[User:Novem Linguae|