commit f52ab05

delthas  ·  2024-07-18 10:24:38 +0000 UTC
parent 69d4f3e
Fix multi-line hyperlinks on messages starting with the link
1 files changed,  +2, -2
+2, -2
 1@@ -118,8 +118,8 @@ func (s StyledString) ParseURLs() StyledString {
 2 			}
 3 			if st.Start == ub {
 4 				// a style already starts at this position, edit it
 5-				lastStyle.Style.Hyperlink = link
 6-				lastStyle.Style.HyperlinkParams = fmt.Sprintf("id=%v", id)
 7+				st.Style.Hyperlink = link
 8+				st.Style.HyperlinkParams = fmt.Sprintf("id=%v", id)
 9 			}
10 			lastStyle = st
11 			styles = append(styles, st)