From 409152afb89018574f4baa0c54c65378bbf07142 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 21 Oct 2013 22:26:36 +0100 Subject: [PATCH] Make the default list widget template include a div or span Otherwise writing this makes a list on one line: ``` {{{ [tag[done]] }}} ``` --- core/modules/new_widgets/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/new_widgets/list.js b/core/modules/new_widgets/list.js index 21e6096bd..93b8005e3 100755 --- a/core/modules/new_widgets/list.js +++ b/core/modules/new_widgets/list.js @@ -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")) {