Make the default list widget template include a div or span

Otherwise writing this makes a list on one line:

```
{{{ [tag[done]] }}}
```
print-window-tiddler
Jeremy Ruston 2013-10-21 22:26:36 +01:00
rodzic c96cb6e956
commit 409152afb8
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -99,9 +99,9 @@ ListWidget.prototype.makeItemTemplate = function(title) {
templateTree = this.parseTreeNode.children;
} else {
// Default template is a link to the title
templateTree = [{type: "link", attributes: {to: {type: "string", value: title}}, children: [
templateTree = [{type: "element", tag: this.parseTreeNode.isBlock ? "div" : "span", children: [{type: "link", attributes: {to: {type: "string", value: title}}, children: [
{type: "text", text: title}
]}];
]}]}];
}
}
if(!this.hasAttribute("hackCurrentTiddler")) {