diff --git a/tools/news-fmt b/tools/news-fmt index 5062e52..d3cee40 100755 --- a/tools/news-fmt +++ b/tools/news-fmt @@ -37,16 +37,16 @@ function escprint( str ) /^commit / { next } # store author -match( $0, /^Author: *([^<]+)/, author ) { next } +match( $0, /^Author: *([^<]+)/, a ) { author = a[1]; next } # store date -match( $0, /^Date: *(.+)$/, date ) { next } +match( $0, /^Date: *[^ ]+ ([^ ]+ [^ ]+ [^ ]+)/, a ) { date = a[1]; next } # commit messages are indented by four spaces, with the subject line # occupying the first paragraph (that is---until an empty line) /^ / { # begin the subject line output - printf "
"