Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
typescript
json2html
Commits
ac06bbaf
Commit
ac06bbaf
authored
Oct 18, 2020
by
Zéfling
🎨
Browse files
Fix number in options
parent
4b5f4a74
Changes
1
Show whitespace changes
Inline
Side-by-side
projects/json2html/src/lib/json2html.ts
View file @
ac06bbaf
...
...
@@ -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
)
:
''
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment