[gcompris/gcomprixogoo] Little fix to better malformated language section in wiktionary.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Little fix to better malformated language section in wiktionary.
- Date: Wed, 13 Oct 2010 23:10:41 +0000 (UTC)
commit 93ac6f7ec95580b198d16a413872a24549ad5fb6
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Oct 14 00:31:32 2010 +0200
Little fix to better malformated language section in wiktionary.
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 cab9e16..8e1ddb7 100755
--- a/tools/wiktio2xml/wiktio2xml.py
+++ b/tools/wiktio2xml/wiktio2xml.py
@@ -342,7 +342,7 @@ class WikiHandler(ContentHandler):
# Are we still in the correct language section
# We assume the correct language is ahead
- lang = re.match(r"== {{=([a-z]+)=}} ==", l)
+ lang = re.match(r"==[ ]+{{=([a-z]+)=}}[ ]+==", l)
if lang and lang.group(1) != None and lang.group(1) != self.locale:
return inWord
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]