From 1d1a5f1a28ba3002fcdd64e4cbfe1881d7ae37cb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 18 Jul 2024 22:55:40 +0200 Subject: Fix newlines in `highlighter` and `markdown` example --- examples/markdown/src/main.rs | 1 + highlighter/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index d902a4f7..6b7adc12 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -34,6 +34,7 @@ impl Markdown { widget::focus_next(), ) } + fn update(&mut self, message: Message) { match message { Message::Edit(action) => { diff --git a/highlighter/src/lib.rs b/highlighter/src/lib.rs index deee199f..83a15cb1 100644 --- a/highlighter/src/lib.rs +++ b/highlighter/src/lib.rs @@ -169,7 +169,6 @@ impl Highlight { pub fn font(&self) -> Option { self.0.font_style.and_then(|style| { let bold = style.contains(highlighting::FontStyle::BOLD); - let italic = style.contains(highlighting::FontStyle::ITALIC); if bold || italic { -- cgit