authorSergey Poznyakoff <>2018-08-05 10:13:22 (GMT)
committer Sergey Poznyakoff <>2018-08-05 10:13:22 (GMT)
commiteb81aad9d5c9f42b480a52c22ea7e26e0ea5d4c2 (patch) (side-by-side diff)
parentcb47437dc165538a85fcc0a9a0c8ea59d403ab26 (diff)
Improve inter-version compatibility
* WikiTrans/ (HtmlTextNode): Use quote=False to make sure same output is obtained in Python 2.7 and 3.x * testdata/headings.html: Update
Diffstat (more/less context) (ignore whitespace changes)
2 files changed, 2 insertions, 2 deletions
diff --git a/WikiTrans/ b/WikiTrans/
index 7c71602..00f02b5 100644
--- a/WikiTrans/
+++ b/WikiTrans/
@@ -102,13 +102,13 @@ class HtmlFontNode(HtmlSeqNode):
class HtmlTextNode(HtmlSeqNode):
def format(self):
if isinstance(self.content,list):
s = ''.join(self.content)
- s = html_escape(self.content, quote=True)
+ s = html_escape(self.content, quote=False)
return s
class HtmlHdrNode(WikiHdrNode):
def format(self):
level = self.level
if level > 4:
diff --git a/testdata/headings.html b/testdata/headings.html
index 905c46b..de9c9c3 100644
--- a/testdata/headings.html
+++ b/testdata/headings.html
@@ -2,13 +2,13 @@
<p><i>Headings</i> organize your writing into
sections. The Wiki software can automatically
generate a <a href="">table of contents</a> from them.</p>
-<p>Using more &quot;equals&quot; (=) signs creates a subsection.</p>
+<p>Using more "equals" (=) signs creates a subsection.</p>
<h4>A smaller subsection</h4>
<p>Don't skip levels,
like from two to four equals signs.</p>
<p>Start with 2 equals signs not 1
because 1 creates H1 tags

Return to:

Send suggestions and report system problems to the System administrator.