summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-02-09 11:16:43 +0100
committerAki <please@ignore.pl>2024-02-09 11:16:43 +0100
commit86689e76e4fb0c8fb3e91b757882b60044bf2d8d (patch)
tree8d0bd535347bc6d4e93153738278d8d0dbb8d034
parent587cad6d396b0a507f87e83369b156b7dad20635 (diff)
downloadactivity-86689e76e4fb0c8fb3e91b757882b60044bf2d8d.zip
activity-86689e76e4fb0c8fb3e91b757882b60044bf2d8d.tar.gz
activity-86689e76e4fb0c8fb3e91b757882b60044bf2d8d.tar.bz2
Fixed missing rows in rolling chart
-rw-r--r--activity.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/activity.lua b/activity.lua
index e0f6c07..398d2e8 100644
--- a/activity.lua
+++ b/activity.lua
@@ -34,7 +34,7 @@ function generate_rolling (lookup, format, date)
end
for index, weekday in pairs(weekdays) do
- rows = rows .. format.label(weekday)
+ rows = rows .. format.start_row() .. format.label(weekday)
for week=0,51 do
rows = rows .. format.cell(level(lookup(year_and_day(52 - week, index))))
end
@@ -43,7 +43,7 @@ function generate_rolling (lookup, format, date)
else
rows = rows .. format.spot()
end
- rows = rows .. "\n"
+ rows = rows .. format.end_row()
end
return format.start_document"Activity" .. format.start_table() .. rows .. format.end_table() .. format.end_document()
end