Commits

Walter Dörwald committed 68ae5cf

in img.asString hat das encoding gefehlt.

Comments (0)

Files changed (1)

 	attrHandlers = xsc.appendDict(attrs,{ "src" : xsc.URLAttr , "alt" : xsc.TextAttr , "longdesc" : xsc.TextAttr , "width" : xsc.TextAttr , "height" : xsc.TextAttr , "usemap" : xsc.TextAttr , "ismap" : xsc.TextAttr })
 	attrHandlers = xsc.appendDict(attrHandlers,{ "name" : xsc.TextAttr , "border" : xsc.TextAttr , "align" : xsc.TextAttr , "hspace" : xsc.TextAttr , "vspace" : xsc.TextAttr , "lowsrc" : xsc.URLAttr }) # deprecated
 
-	def asString(self,XHTML = None):
-		return self._asStringWithImageSize(XHTML,"src","width","height")
+	def asString(self,XHTML = None,encoding = None):
+		return self._asStringWithImageSize(XHTML,encoding,"src","width","height")
 
 	def asPlainString(self):
 		if self.hasAttr("alt"):