[sagenb] 94/179: Minor fixes to sws2rst for processing a few more tags
felix salfelder
felix-guest at moszumanska.debian.org
Tue May 6 12:05:13 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 d1751f5a82c849d576a6a0a6ff17efa602b0b110
Author: Karl Crisman <kcrisman at gmail.com>
Date: Thu Apr 11 23:19:47 2013 -0400
Minor fixes to sws2rst for processing a few more tags
---
sagenb/misc/comments2rst.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sagenb/misc/comments2rst.py b/sagenb/misc/comments2rst.py
index 3db1545..12d6906 100644
--- a/sagenb/misc/comments2rst.py
+++ b/sagenb/misc/comments2rst.py
@@ -156,8 +156,11 @@ class Soup2Rst(object):
'h2':'header',
'h3':'header',
'h4':'header',
+ 'h5':'header',
+ 'h6':'header',
'p': 'p',
'[document]': 'document',
+ 'address': 'em',
'br': 'br',
'b':'strong',
'strong':'strong',
@@ -185,6 +188,7 @@ class Soup2Rst(object):
'h3':u'^',
'h4':u'"',
'h5':u'~',
+ 'h6':u'*',
}
def __init__(self, images_dir):
@@ -296,7 +300,7 @@ class Soup2Rst(object):
return [self.visit(tag) for tag in node.contents if tag!='\n']
def visit_br(self, node):
- return '\n'
+ return '\n\n'
def visit_strong(self, node):
if node.contents:
--
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