marek-sezemsky / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

GUI writes nodes.conf with extra spaces #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Edit the node types and the GUI will save $HOME/.core/nodes.conf
2. After several edits, entries get extra spaces such as:

1 {        router router.gif router.gif {zebra OSPFv2 OSPFv3 vtysh IPForward} 
netns {built-in type for routing}        }

What is the expected output? What do you see instead?

no extra spaces should be added, e.g. the format should be:

1 { router router.gif router.gif {zebra OSPFv2 OSPFv3 vtysh IPForward} netns 
{built-in type for routing} }

Original issue reported on code.google.com by ahrenh...@gmail.com on 18 Jul 2014 at 4:25

GoogleCodeExporter commented 9 years ago
bug in proc writeNodesConf { } in nodes.tcl

this line:
        puts $f "$i { $g_node_types($i) }"

Original comment by ahrenh...@gmail.com on 18 Jul 2014 at 4:27

GoogleCodeExporter commented 9 years ago
same bug in proc writeWidgetsConf

widgets.conf has extra spaces added by GUI saves

Original comment by ahrenh...@gmail.com on 18 Jul 2014 at 4:39

GoogleCodeExporter commented 9 years ago
fixed in SVN r536

subsequent writes by fixed GUI will fix nodes.conf and/or widgets.conf by 
removing the extra whitespace

Original comment by ahrenh...@gmail.com on 18 Jul 2014 at 4:50