From f77d29f00b31061686fe583eb650f380a8c85535 Mon Sep 17 00:00:00 2001 From: NovemLinguae <79697282+NovemLinguae@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:15:52 -0700 Subject: [PATCH] copy comments to talk page: add line breaks before heading (#334) Fixes #333 --- src/modules/submissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/submissions.js b/src/modules/submissions.js index c2136088..6920a250 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -2337,7 +2337,7 @@ } if ( comments && comments.length > 0 ) { - talkText += '== Comments left by AfC reviewers ==\n' + comments.join( '\n\n' ); + talkText = talkText.trim() + '\n\n== Comments left by AfC reviewers ==\n' + comments.join( '\n\n' ); } talkPage.edit( {