forked from JOJ/Joint-Teapot
		
	fix: wrap <summary> by <details>
This commit is contained in:
		
							parent
							
								
									e6c406d6b5
								
							
						
					
					
						commit
						2f9c875d91
					
				|  | @ -202,9 +202,11 @@ def generate_title_and_comment( | ||||||
|             comment += " - Failed" |             comment += " - Failed" | ||||||
|         comment += "\n" |         comment += "\n" | ||||||
|         for i, result in enumerate(stage["results"]): |         for i, result in enumerate(stage["results"]): | ||||||
|  |             comment += "<details>" | ||||||
|             comment += f"<summary>Case {i} - Score: {result['score']}</summary>\n" |             comment += f"<summary>Case {i} - Score: {result['score']}</summary>\n" | ||||||
|             if result["comment"].strip() != "": |             if result["comment"].strip() != "": | ||||||
|                 comment += f"<details>\n\n{result['comment']}\n</details>\n\n" |                 comment += f"{result['comment']}\n" | ||||||
|  |             comment += "</details>\n\n" | ||||||
|             total_score += result["score"] |             total_score += result["score"] | ||||||
|         comment += "\n" |         comment += "\n" | ||||||
|     title = f"JOJ3 Result for {exercise_name} - Score: {total_score}" |     title = f"JOJ3 Result for {exercise_name} - Score: {total_score}" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user