def SVG(self, indent): attr = self.setSVG() nextIndent = indent + ' ' if len(self) > 0: output = indent + '<' + self.name attributes = attributesToSVG(attr) if attributes != '': output += ' ' + attributes output += '>\n' output += self.childrenSVG(nextIndent) output += indent + '</' + self.name + '>\n' else: output = Element.SVG(self, indent) return output
def SVG (self, indent): attr = self.setSVG () nextIndent = indent + ' ' if len (self) > 0: output = indent + '<' + self.name attributes = attributesToSVG (attr) if attributes != '': output += ' ' + attributes output += '>\n' output += self.childrenSVG (nextIndent) output += indent + '</' + self.name + '>\n' else: output = Element.SVG (self, indent) return output
def SVG(self, indent): attr = self.setSVG() nextIndent = indent + " " if len(self) > 0: output = indent + "<" + self.name attributes = attributesToSVG(attr) if attributes != "": output += " " + attributes output += ">\n" output += self.childrenSVG(nextIndent) output += indent + "</" + self.name + ">\n" else: output = Element.SVG(self, indent) return output
def SVG(self, indent): attr = self.setSVG() return indent + "<" + self.name + " " + attributesToSVG(attr) + " />\n"
def SVG (self, indent): attr = self.setSVG () return indent + '<' + self.name + ' ' + attributesToSVG (attr) + ' />\n'
def SVG(self, indent): attr = self.setSVG() return indent + '<' + self.name + ' ' + attributesToSVG(attr) + ' />\n'