summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2008-11-27 11:00:46 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2008-11-27 11:00:46 (GMT)
commit6508bd65f006d7ca1cdaa0d177341ddfe72334a9 (patch) (side-by-side diff)
treee461f6a5af1dea8cbbc92266d9926c44d88fd500
parent9f2879e9d8fe525e9ca59ed59074bf2fdff7e740 (diff)
downloadwikitrans-6508bd65f006d7ca1cdaa0d177341ddfe72334a9.tar.gz
wikitrans-6508bd65f006d7ca1cdaa0d177341ddfe72334a9.tar.bz2
* wiki2html.py: Fix broken continuation after bold and it.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--wiki2html.py2
-rw-r--r--wikimarkup.py9
2 files changed, 5 insertions, 6 deletions
diff --git a/wiki2html.py b/wiki2html.py
index 4e0e78a..6fa0ae3 100644
--- a/wiki2html.py
+++ b/wiki2html.py
@@ -160,8 +160,6 @@ class HtmlWikiMarkup (WikiMarkup):
self.state = [ self.ST_PARA ]
return WikiMarkup.__str__(self) + self.cpara()
-
-
class HtmlWiktionaryMarkup (HtmlWikiMarkup):
"""
A class for translating Wiktionary articles into HTML.
diff --git a/wikimarkup.py b/wikimarkup.py
index 7a7125e..8ed5c46 100644
--- a/wikimarkup.py
+++ b/wikimarkup.py
@@ -214,20 +214,21 @@ It handles:
e = boend.search(line, m.end(0))
if e:
i = e.start(0)
- pos = e.end(0)
+ pos = i + 3
else:
pos = len(line)
i = pos
yield(self.BOLD,
(self.SEQ, self.getkn(line[m.end(0):i])))
- pos = e.end(0)
elif m.group(0) == "''":
i = self.itend(line, m.end(0))
if i == -1:
- i = len(line)
+ pos = len(line)
+ i = pos
+ else:
+ pos = i + 2
yield(self.IT,
(self.SEQ, self.getkn(line[m.end(0):i])))
- pos = i + 2
def input(self):
return None

Return to:

Send suggestions and report system problems to the System administrator.