1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-02 08:50:46 +00:00
This commit is contained in:
Jermolene 2013-12-20 17:07:30 +00:00
parent 79046c52b4
commit e66fb948c1

View File

@ -175,7 +175,7 @@ Generate an unused title from the specified base
exports.generateNewTitle = function(baseTitle) {
var c = 0,
title = baseTitle;
while(this.tiddlerExists(title) {
while(this.tiddlerExists(title)) {
title = baseTitle + " " + (++c);
};
return title;