From 72d5648f4e35b1e46955ce4416873d22d096a323 Mon Sep 17 00:00:00 2001 From: Roel van Uden Date: Sat, 7 Feb 2015 13:18:50 +0100 Subject: [PATCH] Force the new lines into the subtitle --- src/subtitle/formats/ass.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/subtitle/formats/ass.ts b/src/subtitle/formats/ass.ts index 8693032..8544249 100644 --- a/src/subtitle/formats/ass.ts +++ b/src/subtitle/formats/ass.ts @@ -38,7 +38,7 @@ function event(block: typings.ISubtitleEvent): string { style.$.margin_r + ',' + style.$.margin_v + ',' + style.$.effect + ',' + - style.$.text)).join('\n'); + style.$.text)).join('\n') + '\n'; } /** @@ -53,7 +53,7 @@ function script(block: typings.ISubtitle): string { 'PlayResY: ' + block.$.play_res_y + '\n' + 'Subtitle ID: ' + block.$.id + '\n' + 'Language: ' + block.$.lang_string + '\n' + - 'Created: ' + block.$.created; + 'Created: ' + block.$.created + '\n'; } /** @@ -89,5 +89,5 @@ function style(block: typings.ISubtitleStyle): string { style.$.margin_l + ',' + style.$.margin_r + ',' + style.$.margin_v + ',' + - style.$.encoding).join('\n'); + style.$.encoding).join('\n') + '\n'; } \ No newline at end of file