added extra empty line handling to comply with the srt/webvtt spec