From d1751f5a82c849d576a6a0a6ff17efa602b0b110 Mon Sep 17 00:00:00 2001
From: Karl Crisman <kcrisman@gmail.com>
Date: Thu, 11 Apr 2013 23:19:47 -0400
Subject: [PATCH] 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
|
b
|
class Soup2Rst(object): |
156 | 156 | 'h2':'header', |
157 | 157 | 'h3':'header', |
158 | 158 | 'h4':'header', |
| 159 | 'h5':'header', |
| 160 | 'h6':'header', |
159 | 161 | 'p': 'p', |
160 | 162 | '[document]': 'document', |
| 163 | 'address': 'em', |
161 | 164 | 'br': 'br', |
162 | 165 | 'b':'strong', |
163 | 166 | 'strong':'strong', |
… |
… |
class Soup2Rst(object): |
185 | 188 | 'h3':u'^', |
186 | 189 | 'h4':u'"', |
187 | 190 | 'h5':u'~', |
| 191 | 'h6':u'*', |
188 | 192 | } |
189 | 193 | |
190 | 194 | def __init__(self, images_dir): |
… |
… |
class Soup2Rst(object): |
296 | 300 | return [self.visit(tag) for tag in node.contents if tag!='\n'] |
297 | 301 | |
298 | 302 | def visit_br(self, node): |
299 | | return '\n' |
| 303 | return '\n\n' |
300 | 304 | |
301 | 305 | def visit_strong(self, node): |
302 | 306 | if node.contents: |