Skip to content

Commit 9847ca9

Browse files
committed
fix multi line alias description
1 parent 745a33f commit 9847ca9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/emmylua_code_analysis/src/db_index/type/humanize_type.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ fn humanize_multi_line_union_type(
305305
if let Some(description) = description {
306306
text.push_str(&format!(
307307
" | {} -- {}\n",
308-
type_humanize_text, description
308+
type_humanize_text,
309+
description.replace('\n', " ")
309310
));
310311
} else {
311312
text.push_str(&format!(" | {}\n", type_humanize_text));

0 commit comments

Comments
 (0)