Skip to content

Commit

Permalink
Fix calendar with blank cells for the month
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPacker committed Nov 30, 2023
1 parent e754dd3 commit 003e6fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mdpre
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ from enum import Enum
import calendar


mdpre_level = "0.6.5"
mdpre_date = "17 February, 2023"
mdpre_level = "0.6.6"
mdpre_date = "30 November, 2023"
banner = "mdpre Markdown Preprocessor v" + mdpre_level + " (" + mdpre_date + ")"

log = partial(print, file=sys.stderr) # | create log to stderr
Expand Down Expand Up @@ -239,6 +239,10 @@ class Output(object):
else:
formattedDay = day + dayNote

# Make blank cell appear
if formattedDay == "":
formattedDay = " "

# Vertically pad
formattedDay = formattedDay + "<br/>" * (cal_cellHeight - cellLines)

Expand Down

0 comments on commit 003e6fb

Please sign in to comment.