TwoWheelDev / gns3-converter

GNS3 Topology Converter
GNU General Public License v3.0
14 stars 13 forks source link

Text conversion doesn't do new lines well, add additional quotes; colour is lost #4

Closed rednectar closed 10 years ago

rednectar commented 10 years ago

New lines:


Original in topology.net text = "Servers VLAN\n 20 Servers"

Converted output: "text": "\"Servers VLAN\n 20 Servers\"" ,

Colour


Original: text = "topology_9 (Completed ICND1 Readiness Test)" x = -288.0 y = -264.5 color = "#55aa7f"

Converted:

        {
            "color": "\"#55aa7f\"",
            "text": "\"topology_9 (Completed ICND1 Readiness Test)\"",
            "x": -288.0,
            "y": -264.5
        },

Should be:

        {
            "color": "#55aa7f",
            "text": "topology_9 (Completed ICND1 Readiness Test)",
            "x": -288.0,
            "y": -264.5
        },