pombreda / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

Quote in unicode html-labels #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

# encoding: utf-8
import pydot
dot = pydot.Dot(charset='utf-8')
dot.add_node(pydot.Node('test',
    label=u'<<font color="red">Проба</font>>'.encode('utf-8')))
dot.write_png('test.png')

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

expected:

digraph G {
        graph [charset="utf-8"];
        node [label="\N"];
        graph [bb="0,0,384,36"];
        test [label=<<font color="red">Проба</font>>, pos="192,18", width="5.33", height="0.50"];
}

now:

digraph G {
        graph [charset="utf-8"];
        node [label="\N"];
        graph [bb="0,0,384,36"];
        test [label="<<font color=\"red\">Проба</font>>", pos="192,18", width="5.33", height="0.50"];
}

What version of the product are you using? On what operating system?

pydot 1.0.25, Python 2.6.5, ubuntu 10.04

Original issue reported on code.google.com by OKom...@gmail.com on 18 May 2011 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by ero.carr...@gmail.com on 2 Jan 2012 at 11:54

GoogleCodeExporter commented 9 years ago
fixed in revision 28

Original comment by ero.carr...@gmail.com on 2 Jan 2012 at 11:54