Skip to content

Commit

Permalink
feat(search): added multiline output feature to Search command #1004
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Apr 27, 2023
1 parent 7ca4a15 commit 49a4589
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/timeline/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,12 @@ pub fn search_result_dsp_msg(
.as_str(),
&stored_static.disp_abbr_general_values,
);

let all_field_info = if output.is_some() && stored_static.multiline_flag {
all_field_info.replace(" ¦ ", "\r\n")
} else {
all_field_info.to_string()
};
let record_data = vec![
timestamp.as_str(),
hostname.as_str(),
Expand Down

0 comments on commit 49a4589

Please sign in to comment.