Fixed: keywords no longer apply inside <atom> tags (most notably inside CARDNAME)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@863 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-18 19:06:01 +00:00
parent d94b2f688b
commit e99dd02443
+2
View File
@@ -443,6 +443,8 @@ String KeywordDatabase::expand(const String& text,
} else if (is_substr(s, i, _("</kw-"))) {
expand_type = 'a';
s = s.erase(i, skip_tag(s,i)-i); // remove the tag from the string
} else if (is_substr(s, i, _("<atom"))) {
i = match_close_tag_end(s, i); // skip <atom>s
} else {
i = skip_tag(s, i);
}