From eb81aad9d5c9f42b480a52c22ea7e26e0ea5d4c2 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff
Date: Sun, 5 Aug 2018 13:13:22 +0300
Subject: Improve inter-version compatibility
* WikiTrans/wiki2html.py (HtmlTextNode): Use quote=False to make sure
same output is obtained in Python 2.7 and 3.x
* testdata/headings.html: Update
---
WikiTrans/wiki2html.py | 2 +-
testdata/headings.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/WikiTrans/wiki2html.py b/WikiTrans/wiki2html.py
index 7c71602..00f02b5 100644
--- a/WikiTrans/wiki2html.py
+++ b/WikiTrans/wiki2html.py
@@ -105,7 +105,7 @@ class HtmlTextNode(HtmlSeqNode):
if isinstance(self.content,list):
s = ''.join(self.content)
else:
- s = html_escape(self.content, quote=True)
+ s = html_escape(self.content, quote=False)
return s
class HtmlHdrNode(WikiHdrNode):
diff --git a/testdata/headings.html b/testdata/headings.html
index 905c46b..de9c9c3 100644
--- a/testdata/headings.html
+++ b/testdata/headings.html
@@ -5,7 +5,7 @@ sections. The Wiki software can automatically
generate a table of contents from them.
Subsection
-Using more "equals" (=) signs creates a subsection.
+Using more "equals" (=) signs creates a subsection.
A smaller subsection
Don't skip levels,
--
cgit v1.2.1