From 6c698d573356f2a3bfe068330c0df920f3532e60 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 13 Apr 2014 22:34:49 -0400 Subject: [PATCH] A3T - Added TERMINATED tag to all args following the terminator. - Added braces for clarity. --- src/A3t.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/A3t.cpp b/src/A3t.cpp index 6221f75d6..a4317b870 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -128,14 +128,20 @@ void A3t::findBinary () std::string binary = _tree->_branches[0]->attribute ("raw"); std::string::size_type slash = binary.rfind ('/'); if (slash != std::string::npos) + { binary = binary.substr (slash + 1); + } _tree->_branches[0]->attribute ("basename", binary); if (binary == "cal" || binary == "calendar") + { _tree->_branches[0]->tag ("CALENDAR"); + } else if (binary == "task" || binary == "tw" || binary == "t") + { _tree->_branches[0]->tag ("TW"); + } } } @@ -158,8 +164,9 @@ void A3t::findTerminator () { (*i)->unTag ("?"); (*i)->tag ("WORD"); + (*i)->tag ("TERMINATED"); } - } + } } ////////////////////////////////////////////////////////////////////////////////