Skip to content

Commit bd9876f

Browse files
[denisidoro#954] terminal.rs: handle multiline descriptions by calling on item.comment
1 parent 07c2cf9 commit bd9876f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/deser/terminal.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ pub fn write(item: &Item) -> String {
3636
format!(
3737
"{tags_short}{delimiter}{comment_short}{delimiter}{snippet_short}{delimiter}{tags}{delimiter}{comment}{delimiter}{snippet}{delimiter}{file_index}{delimiter}\n",
3838
tags_short = style(limit_str(&item.tags, tag_width_percentage)).with(CONFIG.tag_color()),
39-
comment_short = style(limit_str(&item.comment, comment_width_percentage)).with(CONFIG.comment_color()),
39+
comment_short = style(limit_str(&fix_newlines(&item.comment), comment_width_percentage)).with(CONFIG.comment_color()),
4040
snippet_short = style(limit_str(&fix_newlines(&item.snippet), snippet_width_percentage)).with(CONFIG.snippet_color()),
41+
//snippet_short = style(limit_str(&fix_newlines(&item.snippet), snippet_width_percentage)).with(CONFIG.snippet_color()),
4142
tags = item.tags,
4243
comment = item.comment,
4344
delimiter = DELIMITER,

0 commit comments

Comments
 (0)