diff --git a/tcltk/netgen.tcl.in b/tcltk/netgen.tcl.in index a58631e..f113214 100644 --- a/tcltk/netgen.tcl.in +++ b/tcltk/netgen.tcl.in @@ -194,15 +194,13 @@ proc netgen::convert_to_json {filename lvs_final} { puts $fjson " \]," } } + puts $fjson " \]" if {$gidx == $glen} { - puts $fjson " \]" + puts $fjson " \]" } else { - puts $fjson " \]," + puts $fjson " \]," } } - if {$glen > 0} { - puts $fjson " \]" - } if {$kidx == $nkeys} { puts $fjson " \]" } else { @@ -275,15 +273,13 @@ proc netgen::convert_to_json {filename lvs_final} { puts $fjson " \]," } } + puts $fjson " \]" if {$gidx == $glen} { - puts $fjson " \]" + puts $fjson " \]" } else { - puts $fjson " \]," + puts $fjson " \]," } } - if {$glen > 0} { - puts $fjson " \]" - } if {$kidx == $nkeys} { puts $fjson " \]" } else {