[Pkg-mozext-commits] [adblock-plus] 352/464: Don't manipulate whitespace on build

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:32 UTC 2014


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

taffit pushed a commit to branch master
in repository adblock-plus.

commit 2f70e70fcfb6b4c954c3cb06b1126f501ccad63e
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Jan 14 12:04:24 2013 +0100

    Don't manipulate whitespace on build
---
 packagerGecko.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/packagerGecko.py b/packagerGecko.py
index 6a3408d..8ef06c8 100644
--- a/packagerGecko.py
+++ b/packagerGecko.py
@@ -86,10 +86,6 @@ def getLocales(baseDir, includeIncomplete=False):
   return locales
 
 def processFile(path, data, params):
-  if re.search(r'\.(manifest|xul|jsm?|xml|xhtml|css)$', path):
-    whitespaceRegExp = re.compile(r'^(  )+', re.M)
-    data = re.sub(whitespaceRegExp, lambda match: '\t' * (len(match.group(0)) / 2), data)
-
   if path.endswith('.manifest') and data.find('{{LOCALE}}') >= 0:
     localesRegExp = re.compile(r'^(.*?){{LOCALE}}(.*?){{LOCALE}}(.*)$', re.M)
     replacement = '\n'.join(map(lambda locale: r'\1%s\2%s\3' % (locale, locale), params['locales']))

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



More information about the Pkg-mozext-commits mailing list