From 9c5acd03ca9b0a52477b24d6fa2222fc0bbac241 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 5 May 2012 15:13:34 +0100 Subject: [PATCH] Cleaner line breaks in modules --- rabbithole/core/modules/serializers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rabbithole/core/modules/serializers.js b/rabbithole/core/modules/serializers.js index b79aebf9b..c4af4f5b9 100644 --- a/rabbithole/core/modules/serializers.js +++ b/rabbithole/core/modules/serializers.js @@ -23,11 +23,11 @@ exports["text/html"] = function(tiddler) { exports["application/x-tiddler-module"] = function(tiddler) { 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(tiddler.fields.text); - result.push("});"); - result.push("\n"); + result.push("});\n"); + result.push(""); return result.join(""); };