svg/charts/graph.py
def render_inline_styles(self):
		"Hard-code the styles into the SVG XML if style sheets are not used."
		if not self.css_inline:
			# do nothing
			return

		styles = self.parse_css()
		for node in self.root.xpath('//*[@class]'):
			cl = '.' + node.attrib['class']
			if cl not in styles:
				continue
			style = styles[cl]
			if 'style' in node.attrib:
				style += node.attrib['style']
			node.attrib['style'] = style
def render_inline_styles(self):
		"Hard-code the styles into the SVG XML if style sheets are not used."
		if not self.css_inline:
			# do nothing
			return

		styles = self.parse_css()
		for node in self.root.xpath('//*[@class]'):
			cl = '.' + node.attrib['class']
			if cl not in styles:
				continue
			style = styles[cl]
			if 'style' in node.attrib:
				style += node.attrib['style']
			node.attrib['style'] = style
def render_inline_styles ( self ) : if not self . css_inline : # do nothing return styles = self . parse_css ( ) for node in self . root . xpath ( '//*[@class]' ) : cl = '.' + node . attrib [ 'class' ] if cl not in styles : continue style = styles [ cl ] if 'style' in node . attrib : style += node . attrib [ 'style' ] node . attrib [ 'style' ] = style
Hard-code the styles into the SVG XML if style sheets are not used.
Hard - code the styles into the SVG XML if style sheets are not used .