Skip to content

Commit

Permalink
unusedtitle trim title if needed (#8882)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmario authored Jan 7, 2025
1 parent f8a8f00 commit 4478f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/macros/unusedtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.run = function(baseName,separator,template,startCount) {
}
// $tw.wiki.generateNewTitle = function(baseTitle,options)
// options.prefix must be a string!
return this.wiki.generateNewTitle(baseName, {"prefix": separator, "template": template, "startCount": startCount});
return this.wiki.generateNewTitle(baseName, {"prefix": separator, "template": template, "startCount": startCount}).trim();
};

})();

0 comments on commit 4478f44

Please sign in to comment.