Manfred Moitzi committed 5e06a96

edit Drawing() docs

Comments (0)

Files changed (2)


 .. automethod:: svgwrite.drawing.Drawing.get_xml
-.. automethod:: svgwrite.drawing.Drawing.tostring
+.. method:: Drawing.tostring()
+   Get the XML representation as unicode `string`. If you embed the SVG object
+   into a XHTML page, you have to link to the CSS files (if you use CSS classes)
+   in the header section of the surrounding XHTML page.
+   :return: unicode XML string of this object and all its subelements
 Factory Methods


         Python 3.x - set encoding at the open command::
-            use open('filename', 'w', encoding='utf-8')
+            open('filename', 'w', encoding='utf-8')
         # write xml header
         fileobj.write('<?xml version="1.0" encoding="utf-8" ?>\n')