Browse Source

Removed unnecessary extra copy of _MACROS

pull/8/head
jaraco 16 years ago
parent
commit
a3c34ab9d0
  1. 5
      svg/charts/css.py

5
svg/charts/css.py

@ -2,12 +2,11 @@ import cssutils
SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html
macros = cssutils.profile._MACROS.copy() macros = {
macros.update({
'paint': 'none|currentColor|{color}', 'paint': 'none|currentColor|{color}',
# spec actually says length, but our length macro requires units, so use positivenum # spec actually says length, but our length macro requires units, so use positivenum
'dasharray': '{positivenum}(\s*,\s*{positivenum})*', 'dasharray': '{positivenum}(\s*,\s*{positivenum})*',
}) }
properties = { properties = {
'stroke': '{paint}', 'stroke': '{paint}',
'fill': '{paint}', 'fill': '{paint}',

Loading…
Cancel
Save