mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Update CmdCalendar.cpp
Converted some tabs to spaces and added braces to a for loop.
This commit is contained in:
parent
374b97bb66
commit
45c67fef6e
1 changed files with 5 additions and 3 deletions
|
@ -559,9 +559,10 @@ std::string CmdCalendar::renderMonths (
|
||||||
if (Context::getContext ().config.get ("calendar.holidays") != "none")
|
if (Context::getContext ().config.get ("calendar.holidays") != "none")
|
||||||
{
|
{
|
||||||
for (auto& hol : Context::getContext ().config)
|
for (auto& hol : Context::getContext ().config)
|
||||||
|
{
|
||||||
if (hol.first.substr (0, 8) == "holiday.")
|
if (hol.first.substr (0, 8) == "holiday.")
|
||||||
{
|
{
|
||||||
if (hol.first.substr (hol.first.size () - 4) == "date")
|
if (hol.first.substr (hol.first.size () - 4) == "date")
|
||||||
{
|
{
|
||||||
auto value = hol.second;
|
auto value = hol.second;
|
||||||
Datetime holDate (value.c_str (), Context::getContext ().config.get ("dateformat.holiday"));
|
Datetime holDate (value.c_str (), Context::getContext ().config.get ("dateformat.holiday"));
|
||||||
|
@ -580,7 +581,8 @@ std::string CmdCalendar::renderMonths (
|
||||||
date <= holEnd)
|
date <= holEnd)
|
||||||
cellColor.blend (color_holiday);
|
cellColor.blend (color_holiday);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// colorize today
|
// colorize today
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue