for-each-ref: Fix --format=%(subject) for log message without newlines