wxiaoguang
							
						 
					 | 
					
						
						
							
						
						56ae853ca0
					 | 
					
						
						
							
							Simplify template helper functions (#24570)
						
						
						
						
						
						
						
						To avoid bloating the template helper functions, some functions could be
provided by type methods.
And the new code `data-line-type="{{.GetHTMLDiffLineType}}"` reads
better than `data-line-type="{{DiffLineTypeToStr .GetType}}"`
After the fix, screenshots (the same as before):
<details>


</details>
						
						
					 | 
					
						2023-05-07 09:49:46 +00:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 |