예제 #1
0
파일: text_xml.py 프로젝트: aahlad/soar
 def image(self, src=None, **kw):
     valid_attrs = ['src', 'width', 'height', 'alt', 'title']
     attrs = {'src': src}
     for key, value in kw.items():
         if key in valid_attrs:
             attrs[key] = value
     return FormatterBase.image(self, **attrs) + '</img>'