ansilove.js

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

commit ab0bbdae225c77c24bc384e7785c5360a77f4af0
parent 57f72f8a5923611553a0124bb7683f4d1ba0e83d
Author: Bart Dumon <bart@crossbar.net>
Date:   Wed, 20 Nov 2019 20:55:16 +0100

accept amount of columns as an option

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

diff --git a/ansilove.js b/ansilove.js @@ -1881,6 +1881,9 @@ var AnsiLove = (function () { columns = 80; } + // Set the amount of <columns> is set in <options>, use it. + columns = options.columns || columns; + // Set the amount of <rows> is set in <options>, use it. rows = options.rows || 26;