1
0
Fork 0

fix(plugin-annotations): Let banner start and end with text

This commit is contained in:
joostdecock 2023-09-08 09:05:27 +02:00
parent a253920dd5
commit 5a99c1b5ef

View file

@ -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