From 65c207c92befec93e22086da9456d3906a4e999c Mon Sep 17 00:00:00 2001 From: Marcel <34819524+MarcelCoding@users.noreply.github.com> Date: Mon, 21 Oct 2024 23:09:59 +0200 Subject: [PATCH] render: trim whitepsace (#24) --- ixx/src/option.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ixx/src/option.rs b/ixx/src/option.rs index 0dc34af..c160d12 100644 --- a/ixx/src/option.rs +++ b/ixx/src/option.rs @@ -43,8 +43,8 @@ pub enum Content { impl Content { pub(crate) fn render(self) -> String { match self { - Self::LiteralExpression { text } => highlight(&text), - Self::Markdown { text } => markdown::to_html(&text), + Self::LiteralExpression { text } => highlight(text.trim()), + Self::Markdown { text } => markdown::to_html(text.trim()), } } }