From 3fd50d500eca9d27e193f63e45f0fc84880f56fe Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 15 Jan 2012 15:13:14 +0100 Subject: [PATCH] Don't strip first line of data --- app/helpers/asciicasts_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 4ec8ece..1f666eb 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -1,7 +1,7 @@ module AsciicastsHelper def player_data(asciicast) - data = File.read(asciicast.stdout.path).split("\n", 2)[1] + data = File.read(asciicast.stdout.path) time = File.read(asciicast.stdout_timing.path) data_hex_array = data.bytes.map { |b| '\x' + format('%02x', b) }