1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 20:17:25 +08:00

[nrk] Remove whitespace in XML subtitles causing problems for .srt files

This commit is contained in:
Forthrin 2019-04-10 18:59:17 +02:00
parent 972d2dd0bc
commit d6343d6850

View File

@ -2831,7 +2831,7 @@ def dfxp2srt(dfxp_data):
self._applied_styles.pop() self._applied_styles.pop()
def data(self, data): def data(self, data):
self._out += data self._out += data.strip()
def close(self): def close(self):
return self._out.strip() return self._out.strip()