Branch: Tag:

2018-09-05

2018-09-05 12:35:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar: Revert broken tzdata change in previous commit.

37:    # Remove comments, normalize spaces, and append a space to each line.    sub(/#.*/, "", line)    line = line " " -  gsub(/[[:space:]]+/, " ", line) +  gsub(/[\t ]+/, " ", line)       # Abbreviate keywords. Do not abbreviate "Link" to just "L",    # as pre-2017c zic erroneously diagnoses "Li" as ambiguous.
94:    sub(/ 0+$/, "", line)       # Remove unnecessary trailing days-of-month "1". -  if (match(line, /[[:alpha:]] 1$/)) +  if (match(line, /[A-Za-z] 1$/))    line = substr(line, 1, RSTART)       # Remove unnecessary trailing " Ja" (for January).
144:   }      BEGIN { +  print "# version", version    print "# This zic input file is in the public domain."   }    - /^[[:space:]]*[^#[:space:]]/ { + /^[\t ]*[^#\t ]/ {    process_input_line($0)   }      END {    output_saved_lines()   }