From ea9d215fa3e2e516199d0a3f25839fbaaf90e1a4 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 15 Apr 2019 15:50:52 -0700 Subject: [PATCH] Fix markdown tests --- .travis.yml | 4 ++-- src/utils/markup/markdown.rs | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fc53dc..8b4a194 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,5 @@ rust: - nightly script: - cargo check --all-features - - cargo build --verbose --features "pancurses-backend termion-backend" - - cargo test --verbose --features "pancurses-backend termion-backend" + - cargo build --verbose --features "markdown pancurses-backend termion-backend" + - cargo test --verbose --features "markdown pancurses-backend termion-backend" diff --git a/src/utils/markup/markdown.rs b/src/utils/markup/markdown.rs index e678d76..f08f85d 100644 --- a/src/utils/markup/markdown.rs +++ b/src/utils/markup/markdown.rs @@ -160,34 +160,42 @@ I *really* love __Cursive__!"; &[ Span { content: "# ", + width: 2, attr: &Style::none(), }, Span { content: "Attention", + width: 9, attr: &Style::none(), }, Span { content: "\n\n", + width: 0, attr: &Style::none(), }, Span { content: "I ", + width: 2, attr: &Style::none(), }, Span { content: "really", + width: 6, attr: &Style::from(Effect::Italic), }, Span { content: " love ", + width: 6, attr: &Style::none(), }, Span { content: "Cursive", + width: 7, attr: &Style::from(Effect::Bold), }, Span { content: "!", + width: 1, attr: &Style::none(), } ]