mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix rendering of issue checkboxes (#1709)
This commit is contained in:
		| @@ -144,12 +144,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) { | |||||||
| 	} | 	} | ||||||
| 	switch { | 	switch { | ||||||
| 	case bytes.HasPrefix(text, []byte(prefix+"[ ] ")): | 	case bytes.HasPrefix(text, []byte(prefix+"[ ] ")): | ||||||
| 		text = append([]byte(`<div class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...) | 		text = append([]byte(`<span class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...) | ||||||
| 		if prefix != "" { | 		if prefix != "" { | ||||||
| 			text = bytes.Replace(text, []byte(prefix), []byte{}, 1) | 			text = bytes.Replace(text, []byte(prefix), []byte{}, 1) | ||||||
| 		} | 		} | ||||||
| 	case bytes.HasPrefix(text, []byte(prefix+"[x] ")): | 	case bytes.HasPrefix(text, []byte(prefix+"[x] ")): | ||||||
| 		text = append([]byte(`<div class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...) | 		text = append([]byte(`<span class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...) | ||||||
| 		if prefix != "" { | 		if prefix != "" { | ||||||
| 			text = bytes.Replace(text, []byte(prefix), []byte{}, 1) | 			text = bytes.Replace(text, []byte(prefix), []byte{}, 1) | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user