Fix link formatting in rich viewer

When changing the viewer to use the text-style crate, we mistakenly
changed the format for links in the rich viewer from underline to bold.
This patch fixes that mistake.
This commit is contained in:
Robin Krahl 2020-10-04 20:25:11 +02:00
parent ae1e7ebddf
commit bf47310f51
No known key found for this signature in database
GPG Key ID: 8E9B0870524F69D8

View File

@ -94,7 +94,7 @@ fn style_rich_string(ts: &utils::RichString) -> text_style::StyledStr<'_> {
for annotation in &ts.tag {
match annotation {
RichAnnotation::Default => {}
RichAnnotation::Link(_) => s.style_mut().set_bold(true),
RichAnnotation::Link(_) => s.style_mut().set_underline(true),
RichAnnotation::Image => {}
RichAnnotation::Emphasis => s.style_mut().set_italic(true),
RichAnnotation::Strikeout => {}