Commit ac06bbaf authored by Zéfling's avatar Zéfling 🎨
Browse files

Fix number in options

parent 4b5f4a74
......@@ -233,7 +233,7 @@ export class Json2html {
private _getSpacing(lvl: number, addition: number = 0): string {
return this.options.indent
? (this.options.spaceType === 'space' ? ' ' : '\t')
.repeat((lvl + this.options.spaceBase) * this.options.spaceLength) + ' '.repeat(addition)
.repeat((lvl + +this.options.spaceBase) * +this.options.spaceLength) + ' '.repeat(addition)
: '';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment