diff options
-rw-r--r-- | testxml/xsd/tmw.xsd | 1 | ||||
-rwxr-xr-x | wiki/wikigen.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/testxml/xsd/tmw.xsd b/testxml/xsd/tmw.xsd index 6ea9aea..73c95b4 100644 --- a/testxml/xsd/tmw.xsd +++ b/testxml/xsd/tmw.xsd @@ -373,6 +373,7 @@ <xs:element name="coordinates" type="quests_quest_coordinates"/> <xs:element name="npc" type="xs:string"/> <xs:element name="level" type="xs:string"/> + <xs:element name="wiki" type="xs:string"/> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="group" type="xs:string" use="required"/> diff --git a/wiki/wikigen.py b/wiki/wikigen.py index 1b3ed2d..6f9ead1 100755 --- a/wiki/wikigen.py +++ b/wiki/wikigen.py @@ -758,6 +758,9 @@ def DoQuest(): if '<text' in e: a=qnt2(e) qe.entry.append( a.replace('<text>','').replace('</text>','').replace('<text ','<').replace("@@1", "text").replace("@@", "").strip() ) + elif '<wiki' in e: + a=qnt2(e) + qe.entry.append( a.replace('<wiki>','').replace('</wiki>','').replace('<wiki ','<').replace("@@1", "text").replace("@@", "").strip() ) elif '<questgiver' in e: a=qnt2(e) qe.giver=a.replace('<questgiver>','').replace('</questgiver>','').strip() |