Merge pull request #1 from Sanqui/master
Nicely align columns in the garden table
This commit is contained in:
		
						commit
						dc33e6c56d
					
				| @ -250,10 +250,13 @@ class CursedMenu(object): | |||||||
|             if this_garden[plant_id]: |             if this_garden[plant_id]: | ||||||
|                 if not this_garden[plant_id]["dead"]: |                 if not this_garden[plant_id]["dead"]: | ||||||
|                     this_plant = this_garden[plant_id] |                     this_plant = this_garden[plant_id] | ||||||
|                     plant_table += this_plant["owner"] + " - " |                     entry = "{:14} - {:>16} - {:>7}p - {}\n".format( | ||||||
|                     plant_table += this_plant["age"] + " - " |                         this_plant["owner"], | ||||||
|                     plant_table += str(this_plant["score"]) + "p - " |                         this_plant["age"],  | ||||||
|                     plant_table += this_plant["description"] + "\n" |                         this_plant["score"], | ||||||
|  |                         this_plant["description"] | ||||||
|  |                     ) | ||||||
|  |                     plant_table += entry | ||||||
|         # build list of n entries per page |         # build list of n entries per page | ||||||
|         entries_per_page = self.maxy - 16 |         entries_per_page = self.maxy - 16 | ||||||
|         garden_list = plant_table.splitlines() |         garden_list = plant_table.splitlines() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user