From 45c67fef6e60436a60940033ac79df1586e8650b Mon Sep 17 00:00:00 2001 From: DanielMowitz <53856770+DanielMowitz@users.noreply.github.com> Date: Mon, 19 Apr 2021 00:35:34 +0200 Subject: [PATCH] Update CmdCalendar.cpp Converted some tabs to spaces and added braces to a for loop. --- src/commands/CmdCalendar.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 536287370..7ee60fab7 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -559,9 +559,10 @@ std::string CmdCalendar::renderMonths ( if (Context::getContext ().config.get ("calendar.holidays") != "none") { for (auto& hol : Context::getContext ().config) + { 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; Datetime holDate (value.c_str (), Context::getContext ().config.get ("dateformat.holiday")); @@ -580,7 +581,8 @@ std::string CmdCalendar::renderMonths ( date <= holEnd) cellColor.blend (color_holiday); } - } + } + } } // colorize today