[sagenb] 126/179: Support '....:' doctest syntax in livedocs

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit ce5608af27894c8c1c30333e5308635b6539917d
Author: Stefan van Zwam <stefanvanzwam at gmail.com>
Date:   Thu Jun 20 12:48:14 2013 -0700

    Support '....:' doctest syntax in livedocs
---
 sagenb/notebook/docHTMLProcessor.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sagenb/notebook/docHTMLProcessor.py b/sagenb/notebook/docHTMLProcessor.py
index eef62b8..6cdd17e 100755
--- a/sagenb/notebook/docHTMLProcessor.py
+++ b/sagenb/notebook/docHTMLProcessor.py
@@ -372,6 +372,8 @@ class genericHTMLProcessor(SGMLParser):
                     output_flag = False
                 elif p[:4] == '... ':
                     piece += p[4:] + '\n'
+                elif p[:5] == '....:':
+                    piece += p[5:].lstrip() + '\n'
                 else:
                     # in an output string. replace escaped html
                     # strings so they don't get converted twice.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list