From 83fd7fd92e5b21a177bc16cc7318792cf63a343b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 13 May 2011 12:20:05 +0200 Subject: Really Eclipseize formatting. --- data/tweaks/viewSource.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'data/tweaks/viewSource.js') diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js index d2a9fd1..81e6735 100644 --- a/data/tweaks/viewSource.js +++ b/data/tweaks/viewSource.js @@ -38,9 +38,9 @@ var reAttachmentType = /,\s+([^ )]*)[;)]/; function viewAttachmentSource(attachments) { - attachments.forEach(function (att) { + attachments.forEach(function(att) { if (att.length < 1) { - return ; + return; } var typeName = att[2]; var elem = att[4]; @@ -56,14 +56,16 @@ function viewAttachmentSource(attachments) { // // https://bugzilla.mozilla.org/show_bug.cgi?id=369814#c5 has more // possible mime types for zips? - createDeadLink("viewSourceJAR_" + id, "JAR Contents", elem, - "jar:" + attachHref + "!/", [], "pipe", null, null); + createDeadLink("viewSourceJAR_" + id, "JAR Contents", + elem, "jar:" + attachHref + "!/", [], "pipe", null, + null); } else if (typeName == "application/zip" || typeName == "application/x-zip-compressed" || typeName == "application/x-xpinstall") { - createDeadLink("viewSourceZIP_" + id, "Static ZIP Contents", elem, - "jar:" + attachHref + "!/", [], "pipe", null, null); + createDeadLink("viewSourceZIP_" + id, + "Static ZIP Contents", elem, "jar:" + attachHref + + "!/", [], "pipe", null, null); } else if (typeName != "text/plain" && typeName != "patch" && // Other types that Gecko displays like text/plain @@ -77,8 +79,7 @@ function viewAttachmentSource(attachments) { typeName != "image/gif" && typeName != "image/png" && typeName != "image/jpeg") { createDeadLink("viewSourcePlain_" + id, "Source", elem, - "view-source:" + attachHref, [], "pipe", null, null); - } + "view-source:" + attachHref, [], "pipe", null, null); } - ) + }) } -- cgit