Start allowing spaces in month and day names (convert to _ on -p output)

This commit is contained in:
Dianne Skoll
2022-01-30 12:00:57 -05:00
parent 654fd78ee7
commit 3aee12073e
4 changed files with 30 additions and 2 deletions
+6 -1
View File
@@ -964,9 +964,14 @@ proc FillCalWindow {} {
gets $file line
regexp {^([^ ]*) ([0-9][0-9][0-9][0-9]) ([0-9][0-9]?) ([0-9]) ([0-9])} $line dummy monthName year daysInMonth firstWkday mondayFirst
set monthName [regsub -all {_} $monthName " "]
# Get the day names
gets $file line
set DayNames $line
set DayNames {}
foreach day $line {
set day [regsub -all {_} $day " "];
lappend DayNames $day
}
ConfigureCalWindow $monthName $year $firstWkday $daysInMonth