From da275c72abf755a02a14fefa0c1b29f5b2dd2c98 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Wed, 18 Feb 2015 21:45:38 -0800
Subject: [PATCH] Cleanup Github reply.data.content before atob()

---
 Marlin/configurator/js/configurator.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/configurator/js/configurator.js b/Marlin/configurator/js/configurator.js
index 932123d552..169b41f99f 100644
--- a/Marlin/configurator/js/configurator.js
+++ b/Marlin/configurator/js/configurator.js
@@ -226,7 +226,7 @@ var configuratorApp = (function(){
                   timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
                 };
               }
-              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? atob(txt.data.content) : txt); };
+              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? atob(txt.data.content.replace(/\s/g, '')) : txt); };
               success_count++;
             }
           },