[Pkg-mozext-commits] [itsalltext] 267/459: Removed trailing white-space

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:28 UTC 2015


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

taffit pushed a commit to branch master
in repository itsalltext.

commit 5dd8a690f621bb5deba06f39a12ee842c2291526
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Mon Oct 1 09:20:57 2007 -0400

    Removed trailing white-space
---
 src/chrome/content/API.js         |  10 ++--
 src/chrome/content/Color.js       |  30 +++++------
 src/chrome/content/cacheobj.js    | 101 +++++++++++++++++++-------------------
 src/chrome/content/itsalltext.js  |  58 +++++++++++-----------
 src/chrome/content/preferences.js |   6 +--
 5 files changed, 103 insertions(+), 102 deletions(-)

diff --git a/src/chrome/content/API.js b/src/chrome/content/API.js
index 2e862cd..116aae3 100644
--- a/src/chrome/content/API.js
+++ b/src/chrome/content/API.js
@@ -12,7 +12,7 @@
   via JavaScript or you can add one or two attributes to a XUL element and
   it'll automatically be set up right.
 
-  The suggested method is to add the correct attributes to your XUL button 
+  The suggested method is to add the correct attributes to your XUL button
   or menuitem and let "It's All Text!" do it for you.
 
   Attributes:
@@ -56,9 +56,9 @@
         var nodes = [];
         var nodesIter = document.evaluate("//node()[@itsalltext-control]",
                                           document, null,
-                                          XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null); 
+                                          XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);
 
-        var node = nodesIter.iterateNext(); 
+        var node = nodesIter.iterateNext();
         while (node) {
             nodes.push(node);
             node = nodesIter.iterateNext();
@@ -81,10 +81,10 @@
 /**
  * This is part of the public XUL API.
  * Use this to open an editor for a specific textarea or textbox with
- * the id 'id'.  The file will have the extension 'extension'.  Include 
+ * the id 'id'.  The file will have the extension 'extension'.  Include
  * the leading dot in the extension.
  * @param {String} id The id of textarea or textbody that should be opened in the editor.
- * @param {String} extension The extension of the file used as a temporary file. Example: '.css' (optional) 
+ * @param {String} extension The extension of the file used as a temporary file. Example: '.css' (optional)
  */
 ItsAllText.openEditor = function(id, extension) {
     var node = document.getElementById(id);
diff --git a/src/chrome/content/Color.js b/src/chrome/content/Color.js
index 33023c6..abcdd67 100644
--- a/src/chrome/content/Color.js
+++ b/src/chrome/content/Color.js
@@ -86,15 +86,15 @@ var Color = function() {
 			g = this.green;
 			b = this.blue;
 		}
-		
+
 		var strHexR = r.toString(16).toUpperCase();
 		var strHexG = g.toString(16).toUpperCase();
 		var strHexB = b.toString(16).toUpperCase();
-	
+
 		if (strHexR.length < 2) { strHexR = "0" + strHexR; }
 		if (strHexG.length < 2) { strHexG = "0" + strHexG; }
 		if (strHexB.length < 2) { strHexB = "0" + strHexB; }
-	
+
 		return "#" + strHexR + strHexG + strHexB;
 	};
 
@@ -114,7 +114,7 @@ var Color = function() {
 			g = this.green;
 			b = this.blue;
 		}
-	
+
 		return "rgb(" + r + ", " + g + ", " + b + ")";
 	};
 
@@ -131,9 +131,9 @@ var Color = function() {
      * Returns a Color object with the values inverted. Ignores alpha.
      */
     this.invert = function() {
-        return new Color("rgb(" + 
-                         (255 - this.red) + ", " + 
-                         (255 - this.green) + ", " + 
+        return new Color("rgb(" +
+                         (255 - this.red) + ", " +
+                         (255 - this.green) + ", " +
                          (255 - this.blue) + ")");
     };
 
@@ -145,7 +145,7 @@ var Color = function() {
 	this.blend = function(color, steps) {
         var pallet = [];
         var r, g, b, i;
-      
+
         var step = {
             red   : (alphaBlend(color.red, this.red, color.alpha) - this.red) / steps,
             green : (alphaBlend(color.green, this.green, color.alpha) - this.green) / steps,
@@ -159,12 +159,12 @@ var Color = function() {
         }
         return pallet;
 	};
-     
+
     /**
 	 * Constructor function
 	 */
     this.toString = this.hex;
-    
+
     var value;
     var components, pattern;
     var key, base, m;
@@ -175,7 +175,7 @@ var Color = function() {
         g = arguments[1];
         b = arguments[2];
         a = arguments[3];
-      
+
         this.red   = (!isNaN(r)) ? clamp(r, 0, 255) : 0;
         this.green = (!isNaN(g)) ? clamp(g, 0, 255) : 0;
         this.blue  = (!isNaN(b)) ? clamp(b, 0, 255) : 0;
@@ -183,7 +183,7 @@ var Color = function() {
     } else if (arguments.length == 1) {
         /* CSS Colour keyword or value */
         value = keyword[arguments[0]] ? keyword[arguments[0]] : arguments[0];
-      
+
         for (key in func) {
             if (func[key].test(value)) {
                 pattern = key;
@@ -193,7 +193,7 @@ var Color = function() {
         components = value.match(func[pattern]);
         base = 10;
         m = 1; // Multiplier for percentage values
-      
+
         switch (pattern) {
         case "rgb%":
         case "rgba%":
@@ -216,11 +216,11 @@ var Color = function() {
         default:
             components = [0, "255", "255", "255", "1.0"];
         }
-      
+
         this.red   = clamp(Math.round(parseInt(components[1],base) * m), 0, 255);
         this.green = clamp(Math.round(parseInt(components[2],base) * m), 0, 255);
         this.blue  = clamp(Math.round(parseInt(components[3],base) * m), 0, 255);
-      
+
         if (typeof(components[4]) === 'undefined' || isNaN(components[4])) {
             this.alpha = 1;
         } else {
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 3636992..84e1352 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -1,17 +1,17 @@
 /*
- *  It's All Text! - Easy external editing of web forms. 
- *  
+ *  It's All Text! - Easy external editing of web forms.
+ *
  *  Copyright (C) 2006-2007 Christian Höltje
- *  
+ *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License.
- *  
+ *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *  
+ *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
@@ -29,7 +29,7 @@ function CacheObj(node) {
     /* Gumdrop Image URL */
     that.gumdrop_url    = 'chrome://itsalltext/locale/gumdrop.png';
     /* Gumdrop Image Width */
-    that.gumdrop_width  = ItsAllText.localeString('gumdrop.width'); 
+    that.gumdrop_width  = ItsAllText.localeString('gumdrop.width');
     /* Gumdrop Image Height */
     that.gumdrop_height = ItsAllText.localeString('gumdrop.height');
 
@@ -39,7 +39,7 @@ function CacheObj(node) {
     that.button = null;
     that.initial_background = '';
     that.private_is_watching = false;
-     
+
     that.node_id = that.getNodeIdentifier(node);
     var doc = node.ownerDocument;
 
@@ -54,7 +54,7 @@ function CacheObj(node) {
 
     node.setAttribute(ItsAllText.MYSTRING+'_UID', that.uid);
     ItsAllText.tracker[that.uid] = that;
-    
+
     /* Figure out where we will store the file.  While the filename can
      * change, the directory that the file is stored in should not!
      */
@@ -90,7 +90,7 @@ function CacheObj(node) {
     that.initFromExistingFile();
 
     /**
-     * A callback for when the textarea/textbox or button has 
+     * A callback for when the textarea/textbox or button has
      * the mouse waved over it.
      * @param {Event} event The event object.
      */
@@ -103,7 +103,7 @@ function CacheObj(node) {
     };
 
     /**
-     * A callback for when the textarea/textbox or button has 
+     * A callback for when the textarea/textbox or button has
      * the mouse waved over it and the moved off.
      * @param {Event} event The event object.
      */
@@ -200,7 +200,7 @@ CacheObj.prototype.getNodeIdentifier = function(node) {
         name = node.getAttribute('name');
         doc = node.ownerDocument.getElementsByTagName('html')[0];
         attr = ItsAllText.MYSTRING+'_id_serial';
-        
+
         /* Get a serial that's unique to this document */
         serial = doc.getAttribute(attr);
         if (serial) { serial = parseInt(serial, 10)+1;
@@ -226,7 +226,7 @@ CacheObj.prototype.toString = function() {
 
 /**
  * Write out the contents of the node.
- * 
+ *
  * @param {boolean} clobber Should an existing file be clobbered?
  */
 CacheObj.prototype.write = function(clobber) {
@@ -237,17 +237,17 @@ CacheObj.prototype.write = function(clobber) {
         foStream = Components.
             classes["@mozilla.org/network/file-output-stream;1"].
             createInstance(Components.interfaces.nsIFileOutputStream);
-        
+
         /* write, create, truncate */
-        foStream.init(this.file, 0x02 | 0x08 | 0x20, 
-                      parseInt('0600',8), 0); 
-        
+        foStream.init(this.file, 0x02 | 0x08 | 0x20,
+                      parseInt('0600',8), 0);
+
         /* We convert to charset */
         conv = Components.
             classes["@mozilla.org/intl/scriptableunicodeconverter"].
             createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
         conv.charset = ItsAllText.getCharset();
-        
+
         text = conv.ConvertFromUnicode(this.node.value);
         foStream.write(text, text.length);
         foStream.close();
@@ -258,7 +258,7 @@ CacheObj.prototype.write = function(clobber) {
     } else {
         this.timestamp = this.size = null; // force refresh of textarea
     }
-    
+
     /* Register the file to be deleted on app exit. */
     Components.classes["@mozilla.org/uriloader/external-helper-app-service;1"].
         getService(Components.interfaces.nsPIExternalAppLauncher).
@@ -277,7 +277,7 @@ CacheObj.prototype.getStyle = function(node, attr) {
     var style = view.getComputedStyle(node, '');
     return  style.getPropertyCSSValue(attr).cssText;
 };
-     
+
 // @todo [9] IDEA: Pass in the line number to the editor, arbitrary command?
 // @todo [9] IDEA: Allow the user to pick an alternative editor?
 // @todo [9] IDEA: A different editor per extension?
@@ -294,26 +294,26 @@ CacheObj.prototype.edit = function(extension, clobber) {
     var filename = this.write(clobber);
     this.initial_background = this.node.style.backgroundColor;
     this.initial_color      = this.node.style.color;
-    var program = null; 
+    var program = null;
     const procutil = Components.classes["@mozilla.org/process/util;1"];
 
     var process;
     var args, result, ec, e, params;
-             
+
     try {
         program = ItsAllText.getEditor();
         // checks
         if (program === null)        { throw {name:"Editor is not set."}; }
         if (!program.exists())       { throw {name:"NS_ERROR_FILE_NOT_FOUND"}; }
-        /* Mac check because of 
+        /* Mac check because of
          * https://bugzilla.mozilla.org/show_bug.cgi?id=322865 */
-        if (!(ItsAllText.isDarwin() || program.isExecutable())) { 
+        if (!(ItsAllText.isDarwin() || program.isExecutable())) {
             throw {name:"NS_ERROR_FILE_ACCESS_DENIED"}; }
 
         // create an nsIProcess
         process = procutil.createInstance(Components.interfaces.nsIProcess);
         process.init(program);
-             
+
         // Run the process.
         // If first param is true, calling thread will be blocked until
         // called process terminates.
@@ -324,7 +324,7 @@ CacheObj.prototype.edit = function(extension, clobber) {
         ec = process.run(false, args, args.length, result);
         this.private_is_watching = true;
         this.edit_count++;
-    } catch(e) {        
+    } catch(e) {
         params = {out:null,
                       exists: program ? program.exists() : false,
                       path: ItsAllText.preferences.editor,
@@ -363,28 +363,28 @@ CacheObj.prototype.read = function() {
     var DEFAULT_REPLACEMENT_CHARACTER = 65533;
     var buffer = [];
     var fis, istream, str, e;
-         
+
     try {
         fis = Components.classes["@mozilla.org/network/file-input-stream;1"].
             createInstance(Components.interfaces.nsIFileInputStream);
-        fis.init(this.file, 0x01, parseInt('00400',8), 0); 
+        fis.init(this.file, 0x01, parseInt('00400',8), 0);
         // MODE_RDONLY | PERM_IRUSR
-             
+
         istream = Components.classes["@mozilla.org/intl/converter-input-stream;1"].
             createInstance(Components.interfaces.nsIConverterInputStream);
         istream.init(fis, ItsAllText.getCharset(), 4096, DEFAULT_REPLACEMENT_CHARACTER);
-             
+
         str = {};
         while (istream.readString(4096, str) !== 0) {
             buffer.push(str.value);
         }
-        
+
         istream.close();
         fis.close();
-             
+
         this.timestamp = this.file.lastModifiedTime;
         this.size      = this.file.fileSize;
-             
+
         return buffer.join('');
     } catch(e) {
         return null;
@@ -458,7 +458,7 @@ CacheObj.prototype.update = function() {
             return true;
         }
     }
-    return false; // If we fall through, we 
+    return false; // If we fall through, we
 };
 
 /**
@@ -494,7 +494,7 @@ CacheObj.prototype.onContext = function(event) {
     event.stopPropagation();
     return false;
 };
-  
+
 
 /**
  * Add the gumdrop to a textarea.
@@ -515,22 +515,23 @@ CacheObj.prototype.addGumDrop = function() {
         return;
     }
     ItsAllText.debug('addGumDrop()',cache_object.node_id,cache_object.uid);
-    
+
     var doc = node.ownerDocument;
     if (!node.parentNode) { return; }
-    
+
     var gumdrop = doc.createElementNS(ItsAllText.XHTMLNS, "img");
     gumdrop.setAttribute('src', this.gumdrop_url);
     var gid = cache_object.getNodeIdentifier(gumdrop);
-    
+
     if (ItsAllText.getDebug()) {
         gumdrop.setAttribute('title', cache_object.node_id);
     } else {
         gumdrop.setAttribute('title', ItsAllText.localeString('program_name'));
     }
     cache_object.button = gumdrop; // Store it for easy finding in the future.
-    
-    // Image Attributes
+
+    // Image Attributes & Position
+    // @todo [1] Options for which corner it is next to.
     gumdrop.style.setProperty('cursor',   'pointer', 'important');
     gumdrop.style.setProperty('display',  'block', 'important');
     gumdrop.style.setProperty('position',  'absolute', 'important');
@@ -538,7 +539,7 @@ CacheObj.prototype.addGumDrop = function() {
     gumdrop.style.setProperty('margin',   '0', 'important');
     gumdrop.style.setProperty('border',    'none', 'important');
     gumdrop.style.setProperty('zIndex',    '1', 'important'); // we want it just above normal items.
-    
+
     gumdrop.style.setProperty('width',  this.gumdrop_width+'px',  'important');
     gumdrop.style.setProperty('height', this.gumdrop_height+'px', 'important');
 
@@ -547,21 +548,21 @@ CacheObj.prototype.addGumDrop = function() {
     // Click event handlers
     gumdrop.addEventListener("click",       cache_object.onClick,   false);
     gumdrop.addEventListener("contextmenu", cache_object.onContext, false);
-    
+
     // Insert it into the document
     var parent = node.parentNode;
     var nextSibling = node.nextSibling;
-    
+
     if (nextSibling) {
         parent.insertBefore(gumdrop, nextSibling);
     } else {
         parent.appendChild(gumdrop);
     }
-    
+
     // Add mouseovers/outs
     gumdrop.addEventListener("mouseover",   cache_object.mouseover, false);
     gumdrop.addEventListener("mouseout",    cache_object.mouseout,  false);
-    
+
     cache_object.mouseout(null);
     cache_object.adjust();
 };
@@ -626,31 +627,31 @@ CacheObj.prototype.adjust = function() {
 CacheObj.prototype.hashString = function(some_string) {
     var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
     converter.charset = "UTF-8";
-    
+
     /* result is the result of the hashing.  It's not yet a string,
      * that'll be in retval.
      * result.value will contain the array length
      */
     var result = {};
-    
+
     /* data is an array of bytes */
     var data = converter.convertToByteArray(some_string, result);
     var ch   = Components.classes["@mozilla.org/security/hash;1"].createInstance(Components.interfaces.nsICryptoHash);
-    
+
     ch.init(ch.MD5);
     ch.update(data, data.length);
     var hash = ch.finish(true);
-    
+
     // return the two-digit hexadecimal code for a byte
     var toHexString = function(charCode) {
         return ("0" + charCode.toString(36)).slice(-2);
     };
-    
+
     // convert the binary hash data to a hex string.
     var retval = [];
     for(i in hash) {
         retval[i] = toHexString(hash.charCodeAt(i));
     }
-    
+
     return(retval.join(""));
 };
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 36cf2ec..03e739f 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -1,17 +1,17 @@
 /*
- *  It's All Text! - Easy external editing of web forms. 
- *  
+ *  It's All Text! - Easy external editing of web forms.
+ *
  *  Copyright (C) 2006-2007 Christian Höltje
- *  
+ *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License.
- *  
+ *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *  
+ *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
@@ -139,7 +139,7 @@ var ItsAllText = function() {
      */
     that.debug = function() {
         if (that.preferences && that.preferences.debug) {
-            try { Firebug.Console.logFormatted(arguments); } 
+            try { Firebug.Console.logFormatted(arguments); }
             catch(e) {
                 that.log.apply(that,arguments);
             }
@@ -278,7 +278,7 @@ var ItsAllText = function() {
                     that.monitor.restart();
                 }
             }
-        }        
+        }
     };
 
     /**
@@ -324,7 +324,7 @@ var ItsAllText = function() {
     /**
      * A Preference Option: What editor should we use?
      *
-     * Note: On some platforms, this can return an 
+     * Note: On some platforms, this can return an
      * NS_ERROR_FILE_INVALID_PATH exception and possibly others.
      *
      * For a complete list of exceptions, see:
@@ -336,7 +336,7 @@ var ItsAllText = function() {
         var retval = null;
 
         if (editor === '' && that.isDarwin()) {
-            editor = '/usr/bin/open'; 
+            editor = '/usr/bin/open';
             that.preferences.private_set('editor', editor);
         }
 
@@ -375,7 +375,7 @@ var ItsAllText = function() {
             return extensions;
         }
     };
-    
+
     /**
      * Open the preferences dialog box.
      * @param{boolean} wait The function won't return until the preference is set.
@@ -417,7 +417,7 @@ var ItsAllText = function() {
                 return; // Don't add a duplicate.
             }
         }
-        
+
         var value = that.preferences.extensions;
         if(value.replace(/[\t\n ]+/g) === '') {
             value = ext;
@@ -428,7 +428,7 @@ var ItsAllText = function() {
     };
 
     // @todo [3] Profiling and optimization.
-    
+
     /**
      * Returns a cache object
      * Note: These UIDs are only unique for Its All Text.
@@ -564,12 +564,12 @@ var ItsAllText = function() {
                            contentType=='text/xhtml' ||
                            contentType=='application/xhtml+xml');
                 //var is_xul=(contentType=='application/vnd.mozilla.xul+xml');
-                is_usable = (is_html) && 
+                is_usable = (is_html) &&
                     location &&
                     location.protocol != 'about:' &&
                     location.protocol != 'chrome:';
                 is_my_readme = location && location.href == that.README;
-                if (!(is_usable || is_my_readme)) { 
+                if (!(is_usable || is_my_readme)) {
                     that.debuglog('watch(): ignoring -- ',
                                   location, contentType);
                     return;
@@ -586,7 +586,7 @@ var ItsAllText = function() {
         watcher: function(offset) {
             var monitor = that.monitor;
             var rate = that.getRefresh();
-            
+
             var now = Date.now();
             if (now - monitor.last_now < Math.round(rate * 0.9)) {
                 that.debuglog('monitor.watcher(',offset,') -- skipping catchup refresh');
@@ -665,7 +665,7 @@ var ItsAllText = function() {
                 tag = node.nodeName.toLowerCase();
                 doc = node.ownerDocument;
                 cstyle = doc.defaultView.getComputedStyle(node, '');
-                is_disabled = (!(tag == 'textarea' || 
+                is_disabled = (!(tag == 'textarea' ||
                                  tag == 'textbox') ||
                                node.style.display == 'none' ||
                                (cstyle && (cstyle.display == 'none' ||
@@ -683,7 +683,7 @@ var ItsAllText = function() {
                     menu = document.getElementById("itsalltext-contextmenu");
                     menu.setAttribute('hidden', is_disabled);
                 }
-                    
+
             }
         }
         return true;
@@ -694,7 +694,7 @@ var ItsAllText = function() {
         browser.selectedTab = browser.addTab(that.README, null);
     };
 
-  
+
     // Do the startup when things are loaded.
     window.addEventListener("load", function(event){that.pageload(event);}, true);
     // Do the startup when things are unloaded.
@@ -704,7 +704,7 @@ var ItsAllText = function() {
 
 /**
  * Convert an event into a key fingerprint, aka keyprint.
- * @param {Event} event 
+ * @param {Event} event
  * @returns {String} keyprint
  */
 ItsAllText.prototype.eventToKeyprint = function (event) {
@@ -719,7 +719,7 @@ ItsAllText.prototype.eventToKeyprint = function (event) {
 /**
  * Convert a keyprint to a string suitable for human display.
  * @param {String} keyprint
- * @return {String} 
+ * @return {String}
  */
 ItsAllText.prototype.keyprintToString = function (keyprint) {
     var split = keyprint.split(':');
@@ -777,7 +777,7 @@ ItsAllText.prototype.menuNewExtEdit = function(event) {
     var uid = this.private_current_uid;
     var cobj = that.getCacheObj(uid);
 
-    var params = {out:null};       
+    var params = {out:null};
     window.openDialog("chrome://itsalltext/chrome/newextension.xul", "",
     "chrome, dialog, modal, resizable=yes", params).focus();
     var ext;
@@ -855,8 +855,8 @@ ItsAllText.prototype.rebuildMenu = function(uid, menu_id, is_disabled) {
         node.addEventListener('command', function(event){return that.menuExtEdit(event, null, false);}, false);
         node.setAttribute('disabled', is_disabled?'true':'false');
         menu.insertBefore(node, magic_stop_node);
-    }        
-   
+    }
+
     // Insert the new magic bits
     for(i=0; i<exts.length; i++) {
         node = document.createElementNS(that.XULNS, 'menuitem');
@@ -890,17 +890,17 @@ ItsAllText.prototype.getLocale = function() {
  */
 ItsAllText.prototype.pageload = function(event) {
     var doc = event.originalTarget;
-    if (!doc || doc.nodeName != "#document") { 
+    if (!doc || doc.nodeName != "#document") {
         return;
     }
     this.debug("pageload(): A page has been loaded:",doc);
-    
+
     // Start watching the preferences.
     this.preference_observer.register();
-    
+
     // Start the monitor
     this.monitor.restart();
-    
+
     var appcontent = document.getElementById("appcontent"); // The Browser
     if (appcontent) {
         // Normal web-page.
@@ -912,7 +912,7 @@ ItsAllText.prototype.pageload = function(event) {
          */
         setTimeout(function() {ItsAllText.onDOMContentLoad({originalTarget: event.originalTarget});}, 5000);
     } else {
-        this.onDOMContentLoad(event); 
+        this.onDOMContentLoad(event);
     }
     // Attach the context menu, if we can.
     var contentAreaContextMenu = doc.getElementById("contentAreaContextMenu");
@@ -928,7 +928,7 @@ ItsAllText.prototype.pageload = function(event) {
  */
 ItsAllText.prototype.pageunload = function(event) {
     var doc = event.originalTarget;
-    /* We don't check for the doc type because we want to 
+    /* We don't check for the doc type because we want to
      * be sure everything is unloaded.
      */
     this.debug("pageunload(): A page has been unloaded",doc);
diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index 8807595..924ef90 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -4,12 +4,12 @@
 /**
  * Open a filepicker to select the value of the editor.
  */
-function pref_editor_select() {  
+function pref_editor_select() {
     var locale = document.getElementById("strings");
 
     var pref_editor = document.getElementById('pref_editor');
     var nsIFilePicker = Components.interfaces.nsIFilePicker;
- 
+
     var fp = Components.classes["@mozilla.org/filepicker;1"].
         createInstance(nsIFilePicker);
     fp.init(window,
@@ -28,7 +28,7 @@ function pref_editor_select() {
     } catch(e) {
         // Ignore error, the pref may not have been set or who knows.
     }
-  
+
     var rv = fp.show();
     var file;
     var editor;

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



More information about the Pkg-mozext-commits mailing list