From 207b059af561e620bf127d808280db9be972eed5 2011-02-15 18:59:38 From: Thomas Kluyver Date: 2011-02-15 18:59:38 Subject: [PATCH] Tweaks to RST formatting. --- diff --git a/IPython/core/history.py b/IPython/core/history.py index 70d85fe..2980834 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -348,9 +348,8 @@ def magic_history(self, parameter_s = ''): the given file. The file is always overwritten, though IPython asks for confirmation first if it already exists. - Example - ------- - + Examples + -------- :: In [6]: %hist -n 4 6 diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 7be1ae8..0492d10 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -2607,9 +2607,8 @@ Defaulting color scheme to 'NoColor'""" def magic_pwd(self, parameter_s = ''): """Return the current working directory path. - Example - ------- - + Examples + -------- :: In [9]: pwd @@ -2649,9 +2648,8 @@ Defaulting color scheme to 'NoColor'""" Note that !cd doesn't work for this purpose because the shell where !command runs is immediately discarded after executing 'command'. - Example + Examples -------- - :: In [10]: cd parent/child