mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-03 16:17:19 +02:00
Task
- Quotes arguments for readability.
This commit is contained in:
parent
46c9ddc91f
commit
92f74fc664
1 changed files with 5 additions and 5 deletions
10
src/Task.cpp
10
src/Task.cpp
|
@ -2013,7 +2013,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
// If v is duration, add 'now' to it, else store as date.
|
||||
if (v.type () == Variant::type_duration)
|
||||
{
|
||||
context.debug (label + name + " <-- " + format ("{1}", v.get_duration ()) + " <-- " + (std::string) v + " <-- " + value);
|
||||
context.debug (label + name + " <-- '" + format ("{1}", v.get_duration ()) + "' <-- '" + (std::string) v + "' <-- '" + value + "'");
|
||||
Variant now;
|
||||
if (namedDates ("now", now))
|
||||
v += now;
|
||||
|
@ -2021,7 +2021,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
else
|
||||
{
|
||||
v.cast (Variant::type_date);
|
||||
context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value);
|
||||
context.debug (label + name + " <-- '" + format ("{1}", v.get_date ()) + "' <-- '" + (std::string) v + "' <-- '" + value + "'");
|
||||
}
|
||||
|
||||
set (name, v.get_date ());
|
||||
|
@ -2063,7 +2063,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
|
||||
Variant v;
|
||||
e.evaluateInfixExpression (value, v);
|
||||
context.debug (label + name + " <-- " + v.get_string () + " <-- " + value);
|
||||
context.debug (label + name + " <-- '" + v.get_string () + "' <-- '" + value + "'");
|
||||
|
||||
// If the result is not readily convertible to a numeric value,
|
||||
// then this is an error.
|
||||
|
@ -2104,12 +2104,12 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
if (column->can_modify ())
|
||||
{
|
||||
std::string col_value = column->modify (evaluated);
|
||||
context.debug (label + name + " <-- " + col_value + " <-- " + evaluated + " <-- " + value);
|
||||
context.debug (label + name + " <-- '" + col_value + "' <-- '" + evaluated + "' <-- '" + value + "'");
|
||||
(*this).set (name, col_value);
|
||||
}
|
||||
else
|
||||
{
|
||||
context.debug (label + name + " <-- " + evaluated + " <-- " + value);
|
||||
context.debug (label + name + " <-- '" + evaluated + "' <-- '" + value + "'");
|
||||
(*this).set (name, evaluated);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue