     styleString = container.getAttribute('style') or ''
     return _.reduce(styleString.split(';').slice(0, -1), (styles, str) ->
       [name, value] = str.split(':')
+      name = name.slice(1) if name[0] == ' '
       value = value.slice(1) if value[0] == ' '
       styles[name] = value
       return styles

  matchContainer: (container) ->
    return false unless super(container)
    styles = Scribe.Format.Style.getStyleObject(container)
    if styles[@cssName]?
      for formatName of @styles
        return formatName if @matchFn(formatName, styles[@cssName])
    return false


class Scribe.Format.Bold extends Scribe.Format.Tag

    super(@root, 'family', 'font-family', {
      'serif'     : "'Times New Roman', serif"
      'monospace' : "'Courier New', monospace"
    }, (cssValue) =>
      for key,value of @styles
        return key if value.indexOf(cssValue) >= 0
      return false
    )


