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):