changeset 5330:40871e0eb13a

style: add trailing newline to files
author Mads Kiilerich <madski@unity3d.com>
date Fri, 31 Jul 2015 15:44:07 +0200
parents cd64e53de17b
children 7def29f9c9b9
files kallithea/public/css/bootstrap.css kallithea/public/js/base.js whitespacecleanup.sh
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/bootstrap.css	Fri Jul 31 15:44:07 2015 +0200
+++ b/kallithea/public/css/bootstrap.css	Fri Jul 31 15:44:07 2015 +0200
@@ -6802,4 +6802,4 @@
   td.hidden-print {
     display: none !important;
   }
-}
\ No newline at end of file
+}
--- a/kallithea/public/js/base.js	Fri Jul 31 15:44:07 2015 +0200
+++ b/kallithea/public/js/base.js	Fri Jul 31 15:44:07 2015 +0200
@@ -1439,7 +1439,7 @@
             var myAC = aArgs[0]; // reference back to the AC instance
             var elLI = aArgs[1]; // reference to the selected LI element
             var oData = aArgs[2]; // object literal of selected item's result data
-    
+
             addReviewMember(oData.id, oData.fname, oData.lname, oData.nname,
                             oData.gravatar_lnk, oData.gravatar_size);
             myAC.getInputEl().value = '';
--- a/whitespacecleanup.sh	Fri Jul 31 15:44:07 2015 +0200
+++ b/whitespacecleanup.sh	Fri Jul 31 15:44:07 2015 +0200
@@ -2,9 +2,11 @@
 
 # Enforce some consistency in whitespace - just to avoid spurious whitespaces changes
 
-files=`hg loc '*.py' '*.html' '*.css' '*.rst' '*.txt' '*.js' | egrep -v '/lockfiles.py|LICENSE-MERGELY.html|/codemirror/|/fontello/|(graph|mergely|native.history|select2/select2|yui.flot)\.js$'`
+files=`hg loc '*.py' '*.html' '*.css' '*.rst' '*.txt' '*.js' | egrep -v '/lockfiles.py|LICENSE-MERGELY.html|/codemirror/|/fontello/|(graph|mergely|native.history|select2/select2|yui.flot|yui.2.9)\.js$'`
 sed -i "s,`printf '\t'`,    ,g" $files
 sed -i "s,  *$,,g" $files
+# add trailing newline if missing:
+sed -i '$a\' $files
 
 sed -i 's,\([^ /]\){,\1 {,g' `hg loc '*.css'`
 sed -i 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'`