cssutils.ser.do_CSSStyleRule(self.stylesheet.cssRules[0]) do_css_CSSStyleDeclaration cssText = property(_getCssText, _setCssText, ...) def getCssText(self, separator=None): """ :returns: serialized property cssText, each property separated by given `separator` which may e.g. be ``u''`` to be able to use cssText directly in an HTML style attribute. ``;`` is part of each property (except the last one) and **cannot** be set with separator! """ return cssutils.ser.do_css_CSSStyleDeclaration(self, separator)
Normally cssText is defined as a propety, but we can use the getCssText and pass in a separator for ' ' instead of the default '\n' line.
No comments:
Post a Comment