From d6343d6850a9826a35394e68a5642223e4581128 Mon Sep 17 00:00:00 2001 From: Forthrin Date: Wed, 10 Apr 2019 18:59:17 +0200 Subject: [PATCH] [nrk] Remove whitespace in XML subtitles causing problems for .srt files --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 71713f63a..79d17cd12 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2831,7 +2831,7 @@ def dfxp2srt(dfxp_data): self._applied_styles.pop() def data(self, data): - self._out += data + self._out += data.strip() def close(self): return self._out.strip()