File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,11 @@ export class ParserService {
64
64
. join ( `\n` ) ;
65
65
}
66
66
const bracket_color = config . bracketsColors ( depth ) ;
67
-
68
- if ( currentIndent === 0 ) {
69
- return (
70
- `<tspan x="0" dy="0" style="fill: ${ bracket_color } ;">{</tspan>\n` +
71
- `${ entries } \n` +
72
- `<tspan x="0" dy="19" style="fill: ${ bracket_color } ;">}</tspan>`
73
- ) ;
74
- }
75
-
76
67
const brackets = Array . isArray ( obj ) ? '[]' : '{}' ;
77
68
return (
78
- `<tspan style="fill: ${ bracket_color } ;">${ brackets [ 0 ] } </tspan></tspan> \n` +
69
+ `<tspan style="fill: ${ bracket_color } ;">${ brackets [ 0 ] } </tspan>\n` +
79
70
`${ entries } \n` +
80
- `<tspan x="${ currentIndent } " dy="19"><tspan style="fill: ${ bracket_color } ;">${ brackets [ 1 ] } </tspan>`
71
+ `<tspan x="${ currentIndent } " dy="19" style="fill: ${ bracket_color } ;">${ brackets [ 1 ] } </tspan>`
81
72
) ;
82
73
}
83
74
You can’t perform that action at this time.
0 commit comments