Walter Dörwald avatar Walter Dörwald committed 7c4e4cc

Dok zu addImageSizeAttributes verXMLifiziert.

Comments (0)

Files changed (1)

 		return string.join(v,"")
 
 	def addImageSizeAttributes(self,imgattr,widthattr = "width",heightattr = "height"):
-		"""add width and height attributes to the element for the image that can be found in the attributes imgattr. if the attribute is already there it is taken as a formating template with the size passed in as a dictionary with the keys 'width' and 'height', i.e. you could make your image twice as wide with width='%(width)d*2'"""
+		"""
+		add width and height attributes to the element for the image that can be found in the attribute
+		<argref>imgattr</argref>. If the attributes are already there, they are taken as a formatting
+		template with the size passed in as a dictionary with the keys <code>"width"</code> and <code>"height"</code>,
+		i.e. you could make your image twice as wide with <code>width="%(width)d*2"</code>.
+		"""
 
 		if self.hasAttr(imgattr):
 			size = self[imgattr].ImageSize()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.