From 984d81e2872b75d0e460d782697723b455514308 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 9 Jan 2011 15:58:52 +0000 Subject: [PATCH] (formating) git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1606 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/data/keyword.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/data/keyword.cpp b/src/data/keyword.cpp index da434522..db676b7a 100644 --- a/src/data/keyword.cpp +++ b/src/data/keyword.cpp @@ -436,12 +436,14 @@ String KeywordDatabase::expand(const String& text, set used; // keywords already investigated current.push_back(root); closure(current); - char expand_type = 'a'; // is the keyword expanded? From tag - // Possible values are: - // - '0' = reminder text explicitly hidden - // - '1' = reminder text explicitly shown - // - 'a' = reminder text in default state, hidden - // - 'A' = reminder text in default state, shown + // is the keyword expanded? From tag + // Possible values are: + // - '0' = reminder text explicitly hidden + // - '1' = reminder text explicitly shown + // - 'a' = reminder text in default state, hidden + // - 'A' = reminder text in default state, shown + const char default_expand_type = 'a'; + char expand_type = default_expand_type; for (size_t i = 0 ; i < tagged.size() ;) { Char c = tagged.GetChar(i); @@ -451,7 +453,7 @@ String KeywordDatabase::expand(const String& text, expand_type = tagged.GetChar(i + 4); // tagged = tagged.erase(i, skip_tag(tagged,i)-i); // remove the tag from the string } else if (is_substr(tagged, i, _("s