mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
Code Cleanup
- Style: cuddled braces - Style: one declaration per line - Omission: ChangeLog not updated - Omission: AUTHORS not updated - Omission: en-US.h change not propagated to es-ES.h
This commit is contained in:
parent
c0fbfcc58c
commit
b515111f2b
5 changed files with 10 additions and 3 deletions
|
@ -381,7 +381,8 @@ int CmdInfo::execute (std::string& output)
|
|||
std::string previous;
|
||||
std::string current;
|
||||
unsigned int i = 0;
|
||||
long total_time = 0, last_timestamp = 0;
|
||||
long total_time = 0;
|
||||
long last_timestamp = 0;
|
||||
while (i < undo.size ())
|
||||
{
|
||||
when = undo[i++];
|
||||
|
|
|
@ -727,6 +727,7 @@
|
|||
#define STRING_FEEDBACK_ATT_SET "{1} se establecerá como '{2}'."
|
||||
#define STRING_FEEDBACK_ATT_MOD "{1} se cambiará de '{2}' a '{3}'."
|
||||
#define STRING_FEEDBACK_ATT_DEL "{1} eliminado."
|
||||
#define STRING_FEEDBACK_ATT_DEL_DUR "{1} eliminado (duración: {2})."
|
||||
#define STRING_FEEDBACK_ATT_WAS_SET "{1} establecido como '{2}'."
|
||||
#define STRING_FEEDBACK_ATT_WAS_MOD "{1} cambiado de '{2}' a '{3}'."
|
||||
#define STRING_FEEDBACK_ANN_ADD "Anotación de '{1}' añadida."
|
||||
|
|
|
@ -206,9 +206,10 @@ std::string taskInfoDifferences (const Task& before, const Task& after, const st
|
|||
out << format (STRING_FEEDBACK_ANN_DEL, before.get (*name))
|
||||
<< "\n";
|
||||
}
|
||||
else if (*name == "start") {
|
||||
else if (*name == "start")
|
||||
{
|
||||
out << format (STRING_FEEDBACK_ATT_DEL_DUR, ucFirst (*name),
|
||||
Duration(current_timestamp - last_timestamp).formatPrecise())
|
||||
Duration(current_timestamp - last_timestamp).formatPrecise())
|
||||
<< "\n";
|
||||
}
|
||||
else
|
||||
|
@ -239,6 +240,7 @@ std::string taskInfoDifferences (const Task& before, const Task& after, const st
|
|||
{
|
||||
if (*name == "start")
|
||||
last_timestamp = current_timestamp;
|
||||
|
||||
out << format (STRING_FEEDBACK_ATT_WAS_SET,
|
||||
ucFirst (*name),
|
||||
renderAttribute (*name, after.get (*name), dateformat))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue