mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user