- ::getFilterExpression expands +tag to tags _hastag_ tag,
  -tag to tags _notag_ tag.
This commit is contained in:
Paul Beckingham 2014-04-26 15:15:10 -07:00
parent 2770f0388c
commit 4a392a53a2

View file

@ -564,12 +564,13 @@ const std::string A3t::getFilterExpression ()
}
else if ((*i)->hasTag ("TAG"))
{
// TODO +tag --> _hastag_ tag
// TODO -tag --> _notag_ tag
if (filter != "")
filter += ' ';
filter += "<tag>";
if ((*i)->attribute ("sign") == "+")
filter += "tags _hastag_ " + (*i)->attribute ("tag");
else
filter += "tags _notag_ " + (*i)->attribute ("tag");
}
else if ((*i)->hasTag ("PATTERN"))
{