[gcompris/gcomprixogoo] better handle of bold and italique tags.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] better handle of bold and italique tags.
- Date: Wed, 13 Oct 2010 23:10:46 +0000 (UTC)
commit f975c2aa01e919cff4209e734289af731b5f3cda
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Oct 14 01:08:49 2010 +0200
better handle of bold and italique tags.
tools/wiktio2xml/wiktio2xml.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/wiktio2xml/wiktio2xml.py b/tools/wiktio2xml/wiktio2xml.py
index 8e1ddb7..eac128f 100755
--- a/tools/wiktio2xml/wiktio2xml.py
+++ b/tools/wiktio2xml/wiktio2xml.py
@@ -196,7 +196,7 @@ class WikiHandler(ContentHandler):
index = 0
while index >= 0:
index = text.find(quote)
- index2 = text.find(quote, index)
+ index2 = text.find(quote, index + len(quote))
if index >= 0 and index2 >=0:
text = text.replace(quote, openXml, 1)
text = text.replace(quote, closeXml, 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]