mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Skip comments in remind -p output.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#
|
||||
#--------------------------------------------------------------
|
||||
|
||||
# $Id: tkremind,v 1.35 2004-08-11 02:22:35 dfs Exp $
|
||||
# $Id: tkremind,v 1.36 2005-04-12 01:14:48 dfs Exp $
|
||||
|
||||
# the next line restarts using wish \
|
||||
exec wish "$0" "$@"
|
||||
@@ -644,6 +644,10 @@ proc FillCalWindow {} {
|
||||
}
|
||||
|
||||
while { [gets $file line] >= 0 } {
|
||||
# Skip comments
|
||||
if { [string match "#*" $line] } {
|
||||
continue
|
||||
}
|
||||
if { [regexp {^([0-9][0-9][0-9][0-9])/([0-9][0-9])/([0-9][0-9]) +([^ ]+) +([^ ]+) +[^ ]+ +[^ ]+(.*)} $line all year month day type tag stuff] == 0 } {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user