Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgfig.Text() renders list representation of characters instead of string #1

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Sample code:
----
titleSVGTextElement = svgfig.Text(10, 10, "test").SVG()
parentOfCurrentElement.append(titleSVGTextElement)
----

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

Expected: Labeled SVG output with the word "test"
Observed: Labeled SVG output with the Python list __repr__ representation:
['t', 'e', 's', 't']

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

1.1.4 via Google Code


Please provide any additional information below.

I downloaded the source and changed the Text class's __init__ function here:

self.d. = list(d)

to

self.d = str(d)

I repeated this for the TextGlobal class.

I copied this version of svgfig.py into the Google Code 1.1.4 release, and
then recompiled via setup.py. 

This appeared to resolve the issue.

Original issue reported on code.google.com by [email protected] on 10 Mar 2008 at 9:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant