1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 14:54:51 +00:00

Make the default list widget template include a div or span

Otherwise writing this makes a list on one line:

```
{{{ [tag[done]] }}}
```
This commit is contained in:
Jeremy Ruston 2013-10-21 22:26:36 +01:00
parent c96cb6e956
commit 409152afb8

View File

@ -99,9 +99,9 @@ ListWidget.prototype.makeItemTemplate = function(title) {
templateTree = this.parseTreeNode.children; templateTree = this.parseTreeNode.children;
} else { } else {
// Default template is a link to the title // 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} {type: "text", text: title}
]}]; ]}]}];
} }
} }
if(!this.hasAttribute("hackCurrentTiddler")) { if(!this.hasAttribute("hackCurrentTiddler")) {