Fix newlines in highlighter and markdown example
This commit is contained in:
parent
23ad15391c
commit
1d1a5f1a28
2 changed files with 1 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ impl Markdown {
|
|||
widget::focus_next(),
|
||||
)
|
||||
}
|
||||
|
||||
fn update(&mut self, message: Message) {
|
||||
match message {
|
||||
Message::Edit(action) => {
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ impl Highlight {
|
|||
pub fn font(&self) -> Option<Font> {
|
||||
self.0.font_style.and_then(|style| {
|
||||
let bold = style.contains(highlighting::FontStyle::BOLD);
|
||||
|
||||
let italic = style.contains(highlighting::FontStyle::ITALIC);
|
||||
|
||||
if bold || italic {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue