summaryrefslogtreecommitdiffabout
path: root/wikimarkup.py
Side-by-side diff
Diffstat (limited to 'wikimarkup.py') (more/less context) (ignore whitespace changes)
-rw-r--r--wikimarkup.py9
1 files changed, 5 insertions, 4 deletions
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.