summaryrefslogtreecommitdiff
path: root/wiki2html.py
diff options
context:
space:
mode:
Diffstat (limited to 'wiki2html.py')
-rw-r--r--wiki2html.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/wiki2html.py b/wiki2html.py
index 4e0e78a..6fa0ae3 100644
--- a/wiki2html.py
+++ b/wiki2html.py
@@ -151,26 +151,24 @@ class HtmlWikiMarkup (WikiMarkup):
s = ""
else:
s = self.opara()
s1 = WikiMarkup.fmtok(self, tok, env)
if s1:
s += s1
return s
def __str__(self):
self.state = [ self.ST_PARA ]
return WikiMarkup.__str__(self) + self.cpara()
-
-
class HtmlWiktionaryMarkup (HtmlWikiMarkup):
"""
A class for translating Wiktionary articles into HTML.
This version does not do much, except that it tries to correctly
format templates. But "tries" does not mean "does". The heuristics
used here is clearly not enough to cope with it.
1. FIXME:
The right solution would be to have a database of templates with their
semantics and to decide on their rendering depending on that. E.g.
{{term}} in en.wiktionary means "replace this with the search term".
This, however, does not work in other wiktionaries. There are

Return to:

Send suggestions and report system problems to the System administrator.