mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-21 16:52:58 +02:00
Start allowing spaces in month and day names (convert to _ on -p output)
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user