Skip to content

Commit 65c207c

Browse files
authored
render: trim whitepsace (#24)
1 parent 8bf531a commit 65c207c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ixx/src/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ pub enum Content {
4343
impl Content {
4444
pub(crate) fn render(self) -> String {
4545
match self {
46-
Self::LiteralExpression { text } => highlight(&text),
47-
Self::Markdown { text } => markdown::to_html(&text),
46+
Self::LiteralExpression { text } => highlight(text.trim()),
47+
Self::Markdown { text } => markdown::to_html(text.trim()),
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)