From 5a99c1b5efbd74e14b3162c250080fa9cd23ca87 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Fri, 8 Sep 2023 09:05:27 +0200 Subject: [PATCH] fix(plugin-annotations): Let banner start and end with text --- plugins/plugin-annotations/src/banner.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugin-annotations/src/banner.mjs b/plugins/plugin-annotations/src/banner.mjs index 66ea79ce29e..67e0ca61f93 100644 --- a/plugins/plugin-annotations/src/banner.mjs +++ b/plugins/plugin-annotations/src/banner.mjs @@ -51,7 +51,8 @@ const banner = function (config, { part, paths, store, complete }) { * Construct the text string piece by piece so it gets translated */ const spacer = ' '.repeat(mc.spaces) - for (let i = 0; i < mc.repeat; i++) paths[ids.banner].addText(spacer).addText(mc.text) + for (let i = 0; i < mc.repeat; i++) paths[ids.banner].addText(mc.text).addText(spacer) + paths[ids.banner].addText(mc.text) /* * Store all IDs in the store so we can remove this macro with rmbanner