diff --git a/core/modules/wiki.js b/core/modules/wiki.js index a3aad08f2..d93e85758 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -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;