mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 19:47:18 +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 is duration, add 'now' to it, else store as date.
|
||||||
if (v.type () == Variant::type_duration)
|
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;
|
Variant now;
|
||||||
if (namedDates ("now", now))
|
if (namedDates ("now", now))
|
||||||
v += now;
|
v += now;
|
||||||
|
@ -2021,7 +2021,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
v.cast (Variant::type_date);
|
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 ());
|
set (name, v.get_date ());
|
||||||
|
@ -2063,7 +2063,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
|
|
||||||
Variant v;
|
Variant v;
|
||||||
e.evaluateInfixExpression (value, 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,
|
// If the result is not readily convertible to a numeric value,
|
||||||
// then this is an error.
|
// then this is an error.
|
||||||
|
@ -2104,12 +2104,12 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
if (column->can_modify ())
|
if (column->can_modify ())
|
||||||
{
|
{
|
||||||
std::string col_value = column->modify (evaluated);
|
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);
|
(*this).set (name, col_value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
context.debug (label + name + " <-- " + evaluated + " <-- " + value);
|
context.debug (label + name + " <-- '" + evaluated + "' <-- '" + value + "'");
|
||||||
(*this).set (name, evaluated);
|
(*this).set (name, evaluated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue