parameters: (self, container)
docstring: Add the proper style attribute to the output tag.
docstring_summary: Add the proper style attribute to the output tag.
docstring_tokens: Add the proper style attribute to the output tag .
function: def addstyle(self, container):
      "Add the proper style attribute to the output tag."
      if not isinstance(container.output, TaggedOutput):
        Trace.error('No tag to add style, in ' + unicode(container))
      if not self.width and not self.height and not self.maxwidth and not self.maxheight:
        # nothing to see here; move along
        return
      tag = ' style="'
      tag += self.styleparameter('width')
      tag += self.styleparameter('maxwidth')
      tag += self.styleparameter('height')
      tag += self.styleparameter('maxheight')
      if tag[-1] == ' ':
        tag = tag[:-1]
      tag += '"'
      container.output.tag += tag
function_tokens: def addstyle ( self , container ) : if not isinstance ( container . output , TaggedOutput ) : Trace . error ( 'No tag to add style, in ' + unicode ( container ) ) if not self . width and not self . height and not self . maxwidth and not self . maxheight : # nothing to see here; move along return tag = ' style="' tag += self . styleparameter ( 'width' ) tag += self . styleparameter ( 'maxwidth' ) tag += self . styleparameter ( 'height' ) tag += self . styleparameter ( 'maxheight' ) if tag [ - 1 ] == ' ' : tag = tag [ : - 1 ] tag += '"' container . output . tag += tag