From 80b931897c01a42d385851d82a07a5fbb7a2fd71 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 25 Feb 2015 14:24:25 -0800 Subject: [PATCH] Fix some formatting for config options help --- IPython/html/services/contents/filemanager.py | 8 ++++---- IPython/html/services/contents/manager.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/IPython/html/services/contents/filemanager.py b/IPython/html/services/contents/filemanager.py index c502d4816..f775ba89f 100644 --- a/IPython/html/services/contents/filemanager.py +++ b/IPython/html/services/contents/filemanager.py @@ -87,13 +87,13 @@ class FileContentsManager(FileManagerMixin, ContentsManager): This can be used to process the file on disk, such as converting the notebook to a script or HTML via nbconvert. - It will be called as (all arguments passed by keyword): + It will be called as (all arguments passed by keyword):: hook(os_path=os_path, model=model, contents_manager=instance) - path: the filesystem path to the file just written - model: the model representing the file - contents_manager: this ContentsManager instance + - path: the filesystem path to the file just written + - model: the model representing the file + - contents_manager: this ContentsManager instance """ ) def _post_save_hook_changed(self, name, old, new): diff --git a/IPython/html/services/contents/manager.py b/IPython/html/services/contents/manager.py index 7012a2a44..446aed69e 100644 --- a/IPython/html/services/contents/manager.py +++ b/IPython/html/services/contents/manager.py @@ -81,14 +81,14 @@ class ContentsManager(LoggingConfigurable): such as removing notebook outputs or other side effects that should not be saved. - It will be called as (all arguments passed by keyword): + It will be called as (all arguments passed by keyword):: hook(path=path, model=model, contents_manager=self) - model: the model to be saved. Includes file contents. - modifying this dict will affect the file that is stored. - path: the API path of the save destination - contents_manager: this ContentsManager instance + - model: the model to be saved. Includes file contents. + Modifying this dict will affect the file that is stored. + - path: the API path of the save destination + - contents_manager: this ContentsManager instance """ ) def _pre_save_hook_changed(self, name, old, new):