[Pkg-mozext-commits] [nostalgy] 147/252: whitespace cleanup.

David Prévot taffit at moszumanska.debian.org
Tue Jun 14 15:24:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit e363b28e9d164e08b720d590dfa0d2ff79d27309
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed Mar 18 21:08:27 2009 +0000

    whitespace cleanup.
---
 content/edit_prefs.js | 70 +++++++++++++++++++++++++--------------------------
 install.rdf           |  2 +-
 2 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/content/edit_prefs.js b/content/edit_prefs.js
index f69ed65..6f44318 100644
--- a/content/edit_prefs.js
+++ b/content/edit_prefs.js
@@ -25,7 +25,7 @@ String.prototype.quote = function () {
       var c = nost_js_quote[b];
       if (c) { return c; }
       c = b.charCodeAt();
-      return '\\u00' + 
+      return '\\u00' +
 	Math.floor(c / 16).toString(16) + (c % 16).toString(16);
     });
   }
@@ -33,11 +33,11 @@ String.prototype.quote = function () {
 };
 
 function NostalgySendRules() {
-  var sAccountManager = 
+  var sAccountManager =
     Components.classes["@mozilla.org/messenger/account-manager;1"].
     getService(Components.interfaces.nsIMsgAccountManager);
-  
-  var identity = 
+
+  var identity =
     sAccountManager.allIdentities.GetElementAt(0).
     QueryInterface(Components.interfaces.nsIMsgIdentity);
 
@@ -45,41 +45,41 @@ function NostalgySendRules() {
 + "with your current set of Nostalgy's rules?  If yes, choose the address.", identity.email);
   if (!to) return;
 
-  var gMsgCompose = 
+  var gMsgCompose =
     Components.classes["@mozilla.org/messengercompose/compose;1"].
     createInstance(Components.interfaces.nsIMsgCompose);
-  
-  var params = 
+
+  var params =
     Components.classes["@mozilla.org/messengercompose/composeparams;1"].
     createInstance(Components.interfaces.nsIMsgComposeParams);
-  
+
   var compfields =
     Components.classes["@mozilla.org/messengercompose/composefields;1"].
     createInstance(Components.interfaces.nsIMsgCompFields);
-  
-  var progress = 
+
+  var progress =
     Components.classes["@mozilla.org/messenger/progress;1"].
     createInstance(Components.interfaces.nsIMsgProgress);
 
   var account = sAccountManager.defaultAccount;
-  
+
   compfields.to = to;
   compfields.subject = "Nostalgy Rules from " + identity.fullName;
   var rules = MkPrefStr();
   compfields.body = "This e-mail was automatically generated by Nostalgy (Thunderbird Extension). It stores a set of Nostalgy rules.\nIf you read this message under Thunderbird, with Nostalgy installed, you can import these rules by clicking on the 'Extract Nostalgy rules' button that should appear above.\n\nFor more information about Nostalgy: http://alain.frisch.fr/soft_mozilla.html\n\nBEGIN RULES\n" + rules + "\nEND RULES\n\n";
-  
+
   params.identity = identity;
   params.composeFields = compfields;
   params.format = 2;  // PlainText
-  
-  var tmp_win = 
-    window.open("chrome://nostalgy/content/dummy_window.xul", "_blank", 
+
+  var tmp_win =
+    window.open("chrome://nostalgy/content/dummy_window.xul", "_blank",
 		"chrome,dialog='no',width=0,height=0,centerscreen,alwaysLowered");
   setTimeout(function(){ tmp_win.minimize(); },2000);
 
   gMsgCompose.Initialize(tmp_win, params );
 
-  gMsgCompose.SendMsg(Components.interfaces.nsIMsgCompDeliverMode.Now, 
+  gMsgCompose.SendMsg(Components.interfaces.nsIMsgCompDeliverMode.Now,
 		      identity, account.key, null, progress);
 }
 
@@ -124,9 +124,9 @@ function CreateItem(rule) {
   item.appendChild(document.createElement("listcell"));
   item.appendChild(document.createElement("listcell"));
   item.appendChild(document.createElement("listcell"));
- 
+
   // convert from previous version
-  if (rule.field == "any") { 
+  if (rule.field == "any") {
    rule.sender = true;
    rule.recipients = true;
    rule.subject = true;
@@ -163,14 +163,14 @@ function MkPrefStr() {
 
 
 function EditRule(rule, accept) {
-  window.openDialog("chrome://nostalgy/content/edit_rule.xul", 
-                     "_blank", 
+  window.openDialog("chrome://nostalgy/content/edit_rule.xul",
+                     "_blank",
 	             "dialog,chrome,modal,titlebar,resizable=yes",
 	             rule,accept);
 }
 
 function DoEditItem(item) {
-  if (item) { 
+  if (item) {
     EditRule(RuleOfItem(item), function(rule) { SetItem(item,rule); });
   }
 }
@@ -208,7 +208,7 @@ function onAcceptChanges() {
 
   for (var n in nostalgy_completion_options)
     prefs.setBoolPref("extensions.nostalgy."+n,	gEBI(n).checked);
- 
+
   if (wait_key) { wait_key.value = wait_key_old; wait_key = null; }
   for (var i in nostalgy_keys)
     prefs.setCharPref(kKeysPrefs+nostalgy_keys[i][0],
@@ -221,7 +221,7 @@ function onAcceptChanges() {
     if (id.substr(0,1) == "_") {
       try {
        prefs.clearUserPref(kKeysPrefs+id);
-       prefs.clearUserPref(kCustomActionsPrefs+id); 
+       prefs.clearUserPref(kCustomActionsPrefs+id);
       } catch (ex) { }
     }
   }
@@ -238,22 +238,22 @@ function onAcceptChanges() {
 }
 
 function DoNewRule() {
-  EditRule({ sender:true, recipients:true, subject:true, 
+  EditRule({ sender:true, recipients:true, subject:true,
              contains:"", folder:"", under:"" }, CreateItem);
 }
 
 function DoDelete() {
   var idx = gList.selectedIndex;
-  if (idx >= 0) { 
-    gList.removeItemAt(idx); 
-    if (gList.getRowCount() <= idx) { idx = gList.getRowCount() - 1; }  
+  if (idx >= 0) {
+    gList.removeItemAt(idx);
+    if (gList.getRowCount() <= idx) { idx = gList.getRowCount() - 1; }
     gList.selectedIndex = idx;
   }
 }
 
 function getBoolPref(prefs,s) {
  var b = false;
- try { 
+ try {
   b=prefs.getBoolPref("extensions.nostalgy." + s); }
  catch (ex) { }
  return b;
@@ -278,8 +278,8 @@ function createKeyRow(id,txt,v) {
 
   return createElem("row",{ }, [
     createElem("label", { value:txt }),
-    createElem("label", { id:"key_" + id, class:"text-link", 
-                          value:v, 
+    createElem("label", { id:"key_" + id, class:"text-link",
+                          value:v,
                           onclick:"WaitKey(this);",
                           onblur:"Cancel(this);" }),
     createElem("hbox", { }, buttons)
@@ -321,7 +321,7 @@ function onNostalgyLoad() {
    if (id.substr(0,1) == "_") {
      var n = parseInt(id.substr(1));
      try {
-       if (n > max_custom) max_custom = n; 
+       if (n > max_custom) max_custom = n;
        var cmd = prefs.getCharPref(kCustomActionsPrefs + id);
        key_rows.appendChild(createKeyRow(id,cmd,prefs.getCharPref(a[i])));
      } catch (ex) { }
@@ -341,9 +341,9 @@ function onKeyPress(ev) {
     Recognize(ev,wait_key);
     wait_key = null;
   } else if (ev.keyCode == KeyEvent.DOM_VK_ESCAPE) {
-    if 
+    if
       (!confirm
-       ("Do you really want to cancel all your changes to the preferences?")) 
+       ("Do you really want to cancel all your changes to the preferences?"))
       NostalgyStopEvent(ev);
   }
 }
@@ -363,7 +363,7 @@ function WaitKey(tgt) {
 }
 
 function Cancel(tgt) {
-  if (tgt == wait_key) { 
+  if (tgt == wait_key) {
    var old = wait_key_old;
    setTimeout(function() {
       if (document.commandDispatcher.focusedElement != tgt) {
@@ -377,7 +377,7 @@ function Cancel(tgt) {
 function SelectFolder() {
   if (folder_select.value != "") {
     var folder = NostalgyResolveFolder(folder_select.value);
-    if (folder) { 
+    if (folder) {
       var name = folder_name(folder);
       max_custom++;
       var cmd = gEBI("cmdkind").selectedItem.value;
diff --git a/install.rdf b/install.rdf
index 72c3c34..43a9d15 100644
--- a/install.rdf
+++ b/install.rdf
@@ -5,7 +5,7 @@
   <RDF:Description RDF:about="rdf:#$rVuKA2"
                    em:id="{3550f703-e582-4d05-9a08-453d09bdfdc6}"
                    em:minVersion="1.5"
-                   em:maxVersion="3.0b2" />
+                   em:maxVersion="3.0b3" />
   <RDF:Description RDF:about="urn:mozilla:install-manifest"
                    em:id="nostalgy at alain.frisch"
                    em:name="Nostalgy"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list