ansilove.js

A script to display ANSi and artscene related file formats on web pages
Log | Files | Refs | README | LICENSE

commit 8a4793307cd71094cb6df406dc1c6cbadf88264c
parent ae3d400e3232b45d3bb33822a2e5b1cca158be1e
Author: Andy Herbert <andy.herbert@gmail.com>
Date:   Sun, 20 Oct 2013 11:05:50 +0100

Fix for non-CRLF line endings in plain ascii files.

Diffstat:
Mansilove.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/ansilove.js b/ansilove.js @@ -1086,6 +1086,9 @@ var AnsiLove = (function () { file.read(1); ++y; x = 0; + } else if (code === 10) { + ++y; + x = 0; } else { imageData.set(x++, y, code, 1); }