From 1d4099c830a9e3d5ebc01c31ee89686d4e476e83 2015-02-24 22:56:14 From: Thomas Kluyver Date: 2015-02-24 22:56:14 Subject: [PATCH] Dump frontend config JSON with an indent Fixes gh-7857 --- diff --git a/IPython/config/manager.py b/IPython/config/manager.py index 0628a6a..429bfaa 100644 --- a/IPython/config/manager.py +++ b/IPython/config/manager.py @@ -86,7 +86,7 @@ class BaseJSONConfigManager(LoggingConfigurable): else: f = open(filename, 'wb') with f: - json.dump(data, f) + json.dump(data, f, indent=2) def update(self, section_name, new_data): """Modify the config section by recursively updating it with new_data. diff --git a/IPython/html/services/config/manager.py b/IPython/html/services/config/manager.py index 78b4c45..c268284 100644 --- a/IPython/html/services/config/manager.py +++ b/IPython/html/services/config/manager.py @@ -8,7 +8,7 @@ import os from IPython.config.manager import BaseJSONConfigManager class ConfigManager(BaseJSONConfigManager): - """Config Manager use for storin Javascript side config""" + """Config Manager used for storing notebook frontend config""" def _config_dir(self): return os.path.join(self.profile_dir, 'nbconfig')