mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
Cleaner line breaks in modules
This commit is contained in:
parent
232dd8d32b
commit
9c5acd03ca
@ -23,11 +23,11 @@ exports["text/html"] = function(tiddler) {
|
|||||||
|
|
||||||
exports["application/x-tiddler-module"] = function(tiddler) {
|
exports["application/x-tiddler-module"] = function(tiddler) {
|
||||||
var result = [];
|
var result = [];
|
||||||
result.push("<" + "script type=\"text/javascript\" data-tiddler-title=\"" + tiddler.fields.title + "\">");
|
result.push("<" + "script type=\"text/javascript\" data-tiddler-title=\"" + tiddler.fields.title + "\">\n");
|
||||||
result.push("$tw.modules.define(\"" + tiddler.fields.title + "\",\"" + tiddler.fields["module-type"] + "\",function(module,exports,require) {");
|
result.push("$tw.modules.define(\"" + tiddler.fields.title + "\",\"" + tiddler.fields["module-type"] + "\",function(module,exports,require) {");
|
||||||
result.push(tiddler.fields.text);
|
result.push(tiddler.fields.text);
|
||||||
result.push("});");
|
result.push("});\n");
|
||||||
result.push("</" + "script>\n");
|
result.push("</" + "script>");
|
||||||
return result.join("");
|
return result.join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user